summaryrefslogtreecommitdiff
path: root/altosui/AltosRecord.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-06-28 01:03:00 -0700
committerKeith Packard <keithp@keithp.com>2011-06-28 01:03:00 -0700
commit7fd9b8f720add559b262e81d61ededc9df16ca94 (patch)
treeae32f830c27c99aacdfd6fb231e70a3ceee0f3ff /altosui/AltosRecord.java
parentcb239b7161feea8646425b1f5788c3c82ae24321 (diff)
altosui: Support raw telemetry from TeleDongle
Use raw telemetry frames when TeleDongle supports them, this involves parsing the hex dump of the packet instead of having teledongle take the packet apart. Only the legacy format is working at this point; the altos bits for the new split telemetry frames is not written yet. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosRecord.java')
-rw-r--r--altosui/AltosRecord.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/altosui/AltosRecord.java b/altosui/AltosRecord.java
index 200fffe5..8976edf0 100644
--- a/altosui/AltosRecord.java
+++ b/altosui/AltosRecord.java
@@ -25,6 +25,15 @@ import java.io.*;
public class AltosRecord {
final static int MISSING = 0x7fffffff;
+ static final int seen_flight = 1;
+ static final int seen_sensor = 2;
+ static final int seen_temp_volt = 4;
+ static final int seen_deploy = 8;
+ static final int seen_gps_time = 16;
+ static final int seen_gps_lat = 32;
+ static final int seen_gps_lon = 64;
+ int seen;
+
int version;
String callsign;
int serial;
@@ -226,6 +235,7 @@ public class AltosRecord {
public AltosRecord(AltosRecord old) {
version = old.version;
+ seen = old.seen;
callsign = old.callsign;
serial = old.serial;
flight = old.flight;
@@ -254,6 +264,7 @@ public class AltosRecord {
public AltosRecord() {
version = 0;
+ seen = 0;
callsign = "N0CALL";
serial = 0;
flight = 0;