diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-21 16:13:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-21 16:13:14 -0700 |
commit | 7894c27b2b2c3c46a7c107c8acd5977830f006cf (patch) | |
tree | f05c9d5c6bc06c1764118d1f5596a95f0016178d /altoslib/AltosTelemetryRecordSensor.java | |
parent | dec2e455935a71dec13b84bb886252b7f4a1a641 (diff) |
altoslib: Move computed state from AltosRecord to AltosState
Make AltosRecord simply track the raw data and have AltosState hold
all computed values, including cross-packet averages and computed speeds.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosTelemetryRecordSensor.java')
-rw-r--r-- | altoslib/AltosTelemetryRecordSensor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/altoslib/AltosTelemetryRecordSensor.java b/altoslib/AltosTelemetryRecordSensor.java index 319a91b3..f1fc156c 100644 --- a/altoslib/AltosTelemetryRecordSensor.java +++ b/altoslib/AltosTelemetryRecordSensor.java @@ -86,9 +86,9 @@ public class AltosTelemetryRecordSensor extends AltosTelemetryRecordRaw { next.main = AltosRecord.MISSING; } - next.acceleration = acceleration / 16.0; - next.speed = speed / 16.0; - next.height = height; + next.kalman_acceleration = acceleration / 16.0; + next.kalman_speed = speed / 16.0; + next.kalman_height = height; next.ground_pres = ground_pres; if (type == packet_type_TM_sensor) { |