summaryrefslogtreecommitdiff
path: root/altosui/AltosGraphUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-09 22:53:12 -0700
committerKeith Packard <keithp@keithp.com>2011-04-09 22:53:12 -0700
commit7f49d694e776819e03b2c708e1c4ee23ba311430 (patch)
tree9c58c83fd17633b1fb1770dca64cbfec096416b9 /altosui/AltosGraphUI.java
parent835ab3a8c2741a09b27de58c37439a193c9919ce (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.java2
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());