diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-10 14:35:21 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-10 14:35:21 -0700 |
commit | 4962bcf1ce15c21a946ea718bd676b901f0f2bd0 (patch) | |
tree | eb799aadedf5da42ca1fadc10f54edf0d309c186 /altosui/AltosFlightStats.java | |
parent | 01b9352eb8ca0e4e2d023ce973c4e863cdcc0c51 (diff) |
altosui: Plot reasonable data from Tm files
Don't plot acceleration based on baro data.
Display baro speed if accel speed isn't available.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightStats.java')
-rw-r--r-- | altosui/AltosFlightStats.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/altosui/AltosFlightStats.java b/altosui/AltosFlightStats.java index e644b0ba..19471e9f 100644 --- a/altosui/AltosFlightStats.java +++ b/altosui/AltosFlightStats.java @@ -67,7 +67,10 @@ public class AltosFlightStats { if (state_end[state.state] < state.time) state_end[state.state] = state.time; max_height = state.max_height; - max_speed = state.max_speed; + if (state.max_speed != 0) + max_speed = state.max_speed; + else + max_speed = state.max_baro_speed; max_acceleration = state.max_acceleration; } } catch (ParseException pp) { |