From ea8c9ca9dd24a026ea5bfe5a1ac70857181a88c8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 24 Jan 2014 22:40:49 -0800 Subject: altosui: Show GPS max height in flight stats window of graph Uses the new state.max_gps_height() function.# Signed-off-by: Keith Packard --- altosui/AltosFlightStats.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'altosui/AltosFlightStats.java') diff --git a/altosui/AltosFlightStats.java b/altosui/AltosFlightStats.java index bf5644c3..0be49c2f 100644 --- a/altosui/AltosFlightStats.java +++ b/altosui/AltosFlightStats.java @@ -22,6 +22,7 @@ import org.altusmetrum.altoslib_3.*; public class AltosFlightStats { double max_height; + double max_gps_height; double max_speed; double max_acceleration; double[] state_speed = new double[Altos.ao_flight_invalid + 1]; @@ -153,6 +154,7 @@ public class AltosFlightStats { max_height = state.max_height(); max_speed = state.max_speed(); max_acceleration = state.max_acceleration(); + max_gps_height = state.max_gps_height(); } if (state.gps != null && state.gps.locked && state.gps.nsat >= 4) { if (state_id <= Altos.ao_flight_pad) { -- cgit v1.2.3