summaryrefslogtreecommitdiff
path: root/altoslib/AltosTelemetryIterable.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/AltosTelemetryIterable.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/AltosTelemetryIterable.java')
-rw-r--r--altoslib/AltosTelemetryIterable.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/altoslib/AltosTelemetryIterable.java b/altoslib/AltosTelemetryIterable.java
index f4b4029f..e95c15e0 100644
--- a/altoslib/AltosTelemetryIterable.java
+++ b/altoslib/AltosTelemetryIterable.java
@@ -45,7 +45,7 @@ public class AltosTelemetryIterable extends AltosRecordIterable {
try {
for (;;) {
- String line = AltosRecord.gets(input);
+ String line = AltosLib.gets(input);
if (line == null) {
break;
}
@@ -67,11 +67,11 @@ public class AltosTelemetryIterable extends AltosRecordIterable {
saw_boost = true;
boost_tick = record.tick;
}
- if (record.accel != AltosRecord.MISSING)
+ if (record.acceleration() != AltosRecord.MISSING)
has_accel = true;
if (record.gps != null)
has_gps = true;
- if (record.main != AltosRecord.MISSING)
+ if (record.main_voltage() != AltosRecord.MISSING)
has_ignite = true;
if (previous != null && previous.tick != record.tick)
records.add(previous);