summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosIgnite.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-11-23 19:08:07 -0800
committerKeith Packard <keithp@keithp.com>2010-11-23 19:10:27 -0800
commit6cd9be22f06f21d12ee2f668989d83d3c61d14c0 (patch)
treee382abd414c9c50bc6efadee2fd8308a46e01157 /ao-tools/altosui/AltosIgnite.java
parented7cf7d262fcf7c0c677c2fb981582b571de9e5e (diff)
altosui: New AltosSerial.set_radio function sets channel/call
Use this anytime you need to set the device radio channel and call sign, either for telemetry reception or packet mode origination. This uses the saved callsign and per-device radio channel number. Do not use this when opening a telemetrum as there won't be a saved channel number. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosIgnite.java')
-rw-r--r--ao-tools/altosui/AltosIgnite.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/ao-tools/altosui/AltosIgnite.java b/ao-tools/altosui/AltosIgnite.java
index 8e92ec1b..75c0a17a 100644
--- a/ao-tools/altosui/AltosIgnite.java
+++ b/ao-tools/altosui/AltosIgnite.java
@@ -35,9 +35,8 @@ public class AltosIgnite {
private void start_serial() throws InterruptedException {
if (remote) {
- serial.set_channel(AltosPreferences.channel(device.getSerial()));
- serial.set_callsign(AltosPreferences.callsign());
- serial.printf("~\np\n");
+ serial.set_radio();
+ serial.printf("p\nE 0\n");
serial.flush_input();
}
}
@@ -100,7 +99,7 @@ public class AltosIgnite {
start_serial();
serial.printf("t\n");
for (;;) {
- String line = serial.get_reply(1000);
+ String line = serial.get_reply(5000);
if (line == null)
throw new TimeoutException();
if (get_string(line, "Igniter: drogue Status: ", status_name))