summaryrefslogtreecommitdiff
path: root/altoslib/AltosTelemetryRecordLegacy.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-21 09:50:18 -0700
committerKeith Packard <keithp@keithp.com>2012-06-21 09:50:18 -0700
commit6f421818fd7062f03bfaf9e606d6a4cfdcb13b49 (patch)
tree912ddd51730e370b641e45da3065cd9273e4215e /altoslib/AltosTelemetryRecordLegacy.java
parentff5b0ba90e73a83360a2e8a7e9969ed2c3ce1514 (diff)
altosui: Support MM telemetry packets
Required restructuring the whole telemetry system to provide abstract interfaces to flight data. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosTelemetryRecordLegacy.java')
-rw-r--r--altoslib/AltosTelemetryRecordLegacy.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/altoslib/AltosTelemetryRecordLegacy.java b/altoslib/AltosTelemetryRecordLegacy.java
index 85071d9c..3976a07a 100644
--- a/altoslib/AltosTelemetryRecordLegacy.java
+++ b/altoslib/AltosTelemetryRecordLegacy.java
@@ -232,7 +232,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
final static String AO_TELEM_SAT_SVID = "s_v";
final static String AO_TELEM_SAT_C_N_0 = "s_c";
- AltosRecord record;
+ AltosRecordTM record;
private void parse_v4(String[] words, int i) throws ParseException {
AltosTelemetryMap map = new AltosTelemetryMap(words, i);
@@ -366,7 +366,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
String[] words = line.split("\\s+");
int i = 0;
- record = new AltosRecord();
+ record = new AltosRecordTM();
if (words[i].equals("CRC") && words[i+1].equals("INVALID")) {
i += 2;
@@ -388,7 +388,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
}
/*
- * Given a hex dump of a legacy telemetry line, construct an AltosRecord from that
+ * Given a hex dump of a legacy telemetry line, construct an AltosRecordTM from that
*/
int[] bytes;
@@ -422,7 +422,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
static final int AO_GPS_COURSE_VALID = (1 << 7);
public AltosTelemetryRecordLegacy(int[] in_bytes, int in_rssi, int in_status) {
- record = new AltosRecord();
+ record = new AltosRecordTM();
bytes = in_bytes;
record.version = 4;