diff options
author | Keith Packard <keithp@keithp.com> | 2016-05-10 22:46:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-05-11 23:22:15 -0700 |
commit | 60f4d69592c440ab7bb67a04f4c07fc7279d2c20 (patch) | |
tree | 8edfca4a59b5d15d251607075453aeab1a9f376f /altosui/AltosConfigUI.java | |
parent | 6a6da23335e6e5864387c7a22946f80f51056a4f (diff) |
altoslib: Switch distance from m/ft to km/miles for large values
This adds lots of infrastructure to deal with making the unit used
depend on the value itself, and then uses it only for distances.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigUI.java')
-rw-r--r-- | altosui/AltosConfigUI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/AltosConfigUI.java b/altosui/AltosConfigUI.java index 24167df3..09123f4f 100644 --- a/altosui/AltosConfigUI.java +++ b/altosui/AltosConfigUI.java @@ -976,7 +976,7 @@ public class AltosConfigUI } String get_main_deploy_label() { - return String.format("Main Deploy Altitude(%s):", AltosConvert.height.show_units()); + return String.format("Main Deploy Altitude(%s):", AltosConvert.height.parse_units()); } String[] main_deploy_values() { @@ -1243,7 +1243,7 @@ public class AltosConfigUI } String get_tracker_motion_label() { - return String.format("Logging Trigger Motion (%s):", AltosConvert.height.show_units()); + return String.format("Logging Trigger Motion (%s):", AltosConvert.height.parse_units()); } void set_tracker_tool_tip() { |