- void set_channel(int channel) {
- serial.set_channel(channel);
- AltosPreferences.set_channel(device.getSerial(), channel);
+ public void set_frequency(double in_frequency) throws InterruptedException, TimeoutException {
+ frequency = in_frequency;
+ serial.set_radio_frequency(frequency);
+ }
+
+ void save_frequency() {
+ AltosPreferences.set_frequency(device.getSerial(), frequency);
+ }
+
+ void set_telemetry(int in_telemetry) {
+ telemetry = in_telemetry;
+ serial.set_telemetry(telemetry);
+ }
+
+ void save_telemetry() {
+ AltosPreferences.set_telemetry(device.getSerial(), telemetry);
+ }
+
+ File backing_file() {
+ return log.file();