diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-24 08:08:43 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-24 08:08:43 +0900 |
commit | 7f5b5848ad6ef5c808638a29c3dc0101b56ed11e (patch) | |
tree | c85d6936a17ee4533cc8b41e29e59acd1e93d47c /altosui/Altos.java | |
parent | f3e68341f6f5daaf26dd162e4f9a06c29988986a (diff) |
altosui: Add telemetry format menu and preferences
Switches the TeleDongle between full and tiny telemetry packet
formats, saving the last used format for each teledongle in the
application preferences.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/Altos.java')
-rw-r--r-- | altosui/Altos.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/altosui/Altos.java b/altosui/Altos.java index 8ee94e04..9d5b2e02 100644 --- a/altosui/Altos.java +++ b/altosui/Altos.java @@ -63,6 +63,11 @@ public class Altos { static final int ao_flight_landed = 8; static final int ao_flight_invalid = 9; + /* Telemetry modes */ + static final int ao_telemetry_off = 0; + static final int ao_telemetry_full = 1; + static final int ao_telemetry_tiny = 2; + static HashMap<String,Integer> string_to_state = new HashMap<String,Integer>(); static boolean map_initialized = false; |