diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-21 09:50:18 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-21 09:50:18 -0700 |
commit | 6f421818fd7062f03bfaf9e606d6a4cfdcb13b49 (patch) | |
tree | 912ddd51730e370b641e45da3065cd9273e4215e /altoslib/AltosTelemetryRecordRaw.java | |
parent | ff5b0ba90e73a83360a2e8a7e9969ed2c3ce1514 (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/AltosTelemetryRecordRaw.java')
-rw-r--r-- | altoslib/AltosTelemetryRecordRaw.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/altoslib/AltosTelemetryRecordRaw.java b/altoslib/AltosTelemetryRecordRaw.java index 43d0f17a..dc1b8947 100644 --- a/altoslib/AltosTelemetryRecordRaw.java +++ b/altoslib/AltosTelemetryRecordRaw.java @@ -49,6 +49,10 @@ public class AltosTelemetryRecordRaw extends AltosTelemetryRecord { return AltosLib.uint32(bytes, off + 1); } + public int int32(int off) { + return AltosLib.int32(bytes, off + 1); + } + public String string(int off, int l) { return AltosLib.string(bytes, off + 1, l); } @@ -63,7 +67,7 @@ public class AltosTelemetryRecordRaw extends AltosTelemetryRecord { public AltosRecord update_state(AltosRecord previous) { AltosRecord next; if (previous != null) - next = new AltosRecord(previous); + next = previous.clone(); else next = new AltosRecord(); next.serial = serial; |