diff options
author | Keith Packard <keithp@keithp.com> | 2012-03-27 10:38:32 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-03-27 10:45:34 -0700 |
commit | d8ebb83e64d66fa159e75aa560d39d80bb6d9d04 (patch) | |
tree | b8388ffafeee81e3583e7e7160c0a7107b59f960 /altosui/AltosConfigData.java | |
parent | c1d12a117b36de7fe8dd992959b890bfd1163e81 (diff) |
altosui: Configure radio with new direct frequency setting
Instead of computing the radio setting in altosui, let the radio do it directly.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigData.java')
-rw-r--r-- | altosui/AltosConfigData.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/altosui/AltosConfigData.java b/altosui/AltosConfigData.java index c14dc5a1..e5c3566b 100644 --- a/altosui/AltosConfigData.java +++ b/altosui/AltosConfigData.java @@ -49,6 +49,7 @@ public class AltosConfigData implements Iterable<String> { int apogee_delay; int radio_channel; int radio_setting; + int radio_frequency; String callsign; int accel_cal_plus, accel_cal_minus; int radio_calibration; @@ -107,6 +108,7 @@ public class AltosConfigData implements Iterable<String> { serial_line.printf("c s\nf\nl\nv\n"); lines = new LinkedList<String>(); radio_setting = 0; + radio_frequency = 0; stored_flight = 0; for (;;) { String line = serial_line.get_reply(); @@ -121,6 +123,7 @@ public class AltosConfigData implements Iterable<String> { try { apogee_delay = get_int(line, "Apogee delay:"); } catch (Exception e) {} try { radio_channel = get_int(line, "Radio channel:"); } catch (Exception e) {} try { radio_setting = get_int(line, "Radio setting:"); } catch (Exception e) {} + try { radio_frequency = get_int(line, "Frequency:"); } catch (Exception e) {} try { if (line.startsWith("Accel cal")) { String[] bits = line.split("\\s+"); |