diff options
author | Keith Packard <keithp@keithp.com> | 2011-01-11 21:28:07 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-01-11 21:28:07 -0800 |
commit | 440d52e34364fdeeddc76a2d744cc6d1c934364f (patch) | |
tree | fd948bd731cae315f011357bee01f5153c280783 /altosui/AltosSerial.java | |
parent | 7ad419d81c90ef6a16656970466313767fef830f (diff) |
altosui: Add support for parsing list of flights from the 'l' command
This adds parsing support to enumerate the available flights, but does
not yet provide any UI to use it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosSerial.java')
-rw-r--r-- | altosui/AltosSerial.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/altosui/AltosSerial.java b/altosui/AltosSerial.java index b19143e5..6dce6f3d 100644 --- a/altosui/AltosSerial.java +++ b/altosui/AltosSerial.java @@ -242,6 +242,16 @@ public class AltosSerial implements Runnable { } } + public void start_remote() { + set_radio(); + printf("p\nE 0\n"); + flush_input(); + } + + public void stop_remote() { + printf ("~"); + } + public AltosSerial(AltosDevice in_device) throws FileNotFoundException, AltosSerialInUseException { device = in_device; line = ""; |