diff options
author | Keith Packard <keithp@keithp.com> | 2011-04-09 22:53:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-04-09 22:53:12 -0700 |
commit | 7f49d694e776819e03b2c708e1c4ee23ba311430 (patch) | |
tree | 9c58c83fd17633b1fb1770dca64cbfec096416b9 /altosui/AltosGraphUI.java | |
parent | 835ab3a8c2741a09b27de58c37439a193c9919ce (diff) |
altos/altosui: Log averaged baro sensor data in Tm/Tn
Instead of logging the best height guess from the kalman filter, log
barometer data. The logged data consists of the average value betwen
log points to reduce noise.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosGraphUI.java')
-rw-r--r-- | altosui/AltosGraphUI.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosGraphUI.java b/altosui/AltosGraphUI.java index e98c302b..4b994b47 100644 --- a/altosui/AltosGraphUI.java +++ b/altosui/AltosGraphUI.java @@ -35,7 +35,7 @@ public class AltosGraphUI extends JFrame AltosGraphTime.Element speed = new AltosGraphTime.TimeSeries("Speed (m/s)", "Vertical Speed", green) { public void gotTimeData(double time, AltosDataPoint d) { - if (d.state() < Altos.ao_flight_drogue) { + if (d.state() < Altos.ao_flight_drogue && d.has_accel()) { series.add(time, d.accel_speed()); } else { series.add(time, d.baro_speed()); |