summaryrefslogtreecommitdiff
path: root/altosui/AltosFlightStatsTable.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-01-24 22:40:49 -0800
committerKeith Packard <keithp@keithp.com>2014-01-24 22:40:49 -0800
commitea8c9ca9dd24a026ea5bfe5a1ac70857181a88c8 (patch)
treef6776d492b219ea20fd2a57a2cb1c5b6d8da5c2d /altosui/AltosFlightStatsTable.java
parente4616233f3942d2796ba6633477670a83669957b (diff)
altosui: Show GPS max height in flight stats window of graph
Uses the new state.max_gps_height() function.# Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightStatsTable.java')
-rw-r--r--altosui/AltosFlightStatsTable.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/altosui/AltosFlightStatsTable.java b/altosui/AltosFlightStatsTable.java
index 3e7e9fe1..cb0c1562 100644
--- a/altosui/AltosFlightStatsTable.java
+++ b/altosui/AltosFlightStatsTable.java
@@ -91,6 +91,11 @@ public class AltosFlightStatsTable extends JComponent {
new FlightStat(layout, y++, "Maximum height",
String.format("%5.0f m", stats.max_height),
String.format("%5.0f ft", AltosConvert.meters_to_feet(stats.max_height)));
+ if (stats.max_gps_height != AltosLib.MISSING) {
+ new FlightStat(layout, y++, "Maximum GPS height",
+ String.format("%5.0f m", stats.max_gps_height),
+ String.format("%5.0f ft", AltosConvert.meters_to_feet(stats.max_gps_height)));
+ }
new FlightStat(layout, y++, "Maximum speed",
String.format("%5.0f m/s", stats.max_speed),
String.format("%5.0f mph", AltosConvert.meters_to_mph(stats.max_speed)),