projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosdroid: tidy up old messages
[fw/altos]
/
altoslib
/
AltosTelemetryRecordRaw.java
diff --git
a/altoslib/AltosTelemetryRecordRaw.java
b/altoslib/AltosTelemetryRecordRaw.java
index 43d0f17a4562456d54eeba072e01a20c6437cb1e..dc1b8947d4ff665f074967293e04a7519dc41336 100644
(file)
--- a/
altoslib/AltosTelemetryRecordRaw.java
+++ b/
altoslib/AltosTelemetryRecordRaw.java
@@
-49,6
+49,10
@@
public class AltosTelemetryRecordRaw extends AltosTelemetryRecord {
return AltosLib.uint32(bytes, off + 1);
}
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);
}
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)
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;
else
next = new AltosRecord();
next.serial = serial;