- public void set_radio() {
- set_channel(AltosPreferences.channel(device.getSerial()));
- set_callsign(AltosPreferences.callsign());
- }
-
- public void set_channel(int channel) {
- if (altos != null) {
- if (monitor_mode)
- printf("m 0\nc r %d\nm 1\n", channel);
- else
- printf("c r %d\n", channel);
- flush_output();
- }
- }
-
- void set_monitor(boolean monitor) {
- monitor_mode = monitor;
- if (altos != null) {
- if (monitor)
- printf("m 1\n");
- else
- printf("m 0\n");
- flush_output();
- }
- }
-
- public void set_callsign(String callsign) {
- if (altos != null) {
- printf ("c c %s\n", callsign);
- flush_output();
- }
- }
-
- public void start_remote() {
- set_radio();
- printf("p\nE 0\n");
- flush_input();
- }
-
- public void stop_remote() {
- printf ("~");