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 83df63f..9bbdc06 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);