projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Add telemetry format menu and preferences
[fw/altos]
/
altosui
/
AltosTelemetryReader.java
diff --git
a/altosui/AltosTelemetryReader.java
b/altosui/AltosTelemetryReader.java
index 6c5a93978c69a4156e0e44fe3b94b3ea7a9c92c0..980391b437476add2ca092b27ad0d00e6c89a2a2 100644
(file)
--- a/
altosui/AltosTelemetryReader.java
+++ b/
altosui/AltosTelemetryReader.java
@@
-47,6
+47,11
@@
class AltosTelemetryReader extends AltosFlightReader {
AltosPreferences.set_channel(device.getSerial(), channel);
}
AltosPreferences.set_channel(device.getSerial(), channel);
}
+ void set_telemetry(int telemetry) {
+ serial.set_telemetry(telemetry);
+ AltosPreferences.set_telemetry(device.getSerial(), telemetry);
+ }
+
public AltosTelemetryReader (AltosDevice in_device)
throws FileNotFoundException, AltosSerialInUseException, IOException {
device = in_device;
public AltosTelemetryReader (AltosDevice in_device)
throws FileNotFoundException, AltosSerialInUseException, IOException {
device = in_device;