summaryrefslogtreecommitdiff
path: root/altosui/AltosConfig.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-18 18:02:02 -0700
committerKeith Packard <keithp@keithp.com>2011-08-20 11:36:51 -0700
commit6823ad5e48fc0a19791d96f886b5689f88c4311b (patch)
tree9a13b80bfd411ddbe0d9a67239192555bcb7968a /altosui/AltosConfig.java
parenta08e7ac8bd3840b699c9a1ffc6b1e115b2b84bad (diff)
altos/altosui: Add ability to disable telemetry/rdf completely
This turns off the telemetry system so that it never transmits telemetry or RDF tones. In idle mode, it will still accept packet mode connections. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfig.java')
-rw-r--r--altosui/AltosConfig.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/altosui/AltosConfig.java b/altosui/AltosConfig.java
index 84c8a4a3..b1e6bc12 100644
--- a/altosui/AltosConfig.java
+++ b/altosui/AltosConfig.java
@@ -79,6 +79,7 @@ public class AltosConfig implements ActionListener {
int_ref storage_size;
int_ref storage_erase_unit;
int_ref stored_flight;
+ int_ref radio_enable;
string_ref version;
string_ref product;
string_ref callsign;
@@ -148,6 +149,7 @@ public class AltosConfig implements ActionListener {
config_ui.set_radio_calibration(radio_calibration.get());
config_ui.set_radio_frequency(frequency());
config_ui.set_flight_log_max_enabled(stored_flight.get() < 0);
+ config_ui.set_radio_enable(radio_enable.get());
config_ui.set_flight_log_max_limit(log_limit());
config_ui.set_flight_log_max(flight_log_max.get());
config_ui.set_ignite_mode(ignite_mode.get());
@@ -177,6 +179,7 @@ public class AltosConfig implements ActionListener {
get_int(line, "Ignite mode:", ignite_mode);
get_int(line, "Pad orientation:", pad_orientation);
get_int(line, "Radio setting:", radio_setting);
+ get_int(line, "Radio enable:", radio_enable);
get_int(line, "Storage size:", storage_size);
get_int(line, "Storage erase unit:", storage_erase_unit);
get_int(line, "flight", stored_flight);
@@ -255,6 +258,8 @@ public class AltosConfig implements ActionListener {
serial_line.printf("c c %s\n", callsign.get());
if (flight_log_max.get() != 0)
serial_line.printf("c l %d\n", flight_log_max.get());
+ if (radio_enable.get() >= 0)
+ serial_line.printf("c e %d\n", radio_enable.get());
if (ignite_mode.get() >= 0)
serial_line.printf("c i %d\n", ignite_mode.get());
if (pad_orientation.get() >= 0)
@@ -373,6 +378,8 @@ public class AltosConfig implements ActionListener {
radio_calibration.set(config_ui.radio_calibration());
set_frequency(config_ui.radio_frequency());
flight_log_max.set(config_ui.flight_log_max());
+ if (radio_enable.get() >= 0)
+ radio_enable.set(config_ui.radio_enable());
if (ignite_mode.get() >= 0)
ignite_mode.set(config_ui.ignite_mode());
if (pad_orientation.get() >= 0)
@@ -412,6 +419,7 @@ public class AltosConfig implements ActionListener {
radio_channel = new int_ref(0);
radio_setting = new int_ref(0);
radio_calibration = new int_ref(1186611);
+ radio_enable = new int_ref(-1);
flight_log_max = new int_ref(0);
ignite_mode = new int_ref(-1);
pad_orientation = new int_ref(-1);