altosdroid: max height is a height, not a speed
authorKeith Packard <keithp@keithp.com>
Sun, 1 May 2016 01:30:16 +0000 (18:30 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 1 May 2016 01:30:16 +0000 (18:30 -0700)
Was using the wrong units in the flight tab

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/src/org/altusmetrum/AltosDroid/TabFlight.java

index 83df63fa7efcb1706aed2e724c8e37818908c531..9bbdc0605dfcfcf6e9d93152ab0a823282b6a5bf 100644 (file)
@@ -87,7 +87,7 @@ public class TabFlight extends AltosDroidTab {
                        set_value(speed_view, AltosConvert.speed, 6, state.speed());
                        set_value(height_view, AltosConvert.height, 6, state.height());
                        set_value(max_speed_view, AltosConvert.speed, 6, state.max_speed());
-                       set_value(max_height_view, AltosConvert.speed, 6, state.max_height());
+                       set_value(max_height_view, AltosConvert.height, 6, state.max_height());
                        if (from_receiver != null) {
                                elevation_view.setText(AltosDroid.number("%3.0f°", from_receiver.elevation));
                                set_value(range_view, AltosConvert.distance, 6, from_receiver.range);