projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/cc1111: Leave pin interrupts completely disabled at init time
[fw/altos]
/
altoslib
/
AltosTelemetryRecordRaw.java
diff --git
a/altoslib/AltosTelemetryRecordRaw.java
b/altoslib/AltosTelemetryRecordRaw.java
index 51dd704dc81c319477af3b4416ca4238829f97ca..f94789bb57adb08d936bf26ba9806eeeb199ca12 100644
(file)
--- a/
altoslib/AltosTelemetryRecordRaw.java
+++ b/
altoslib/AltosTelemetryRecordRaw.java
@@
-15,13
+15,14
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.
AltosLib
;
+package org.altusmetrum.
altoslib_1
;
public class AltosTelemetryRecordRaw extends AltosTelemetryRecord {
int[] bytes;
int serial;
int tick;
int type;
public class AltosTelemetryRecordRaw extends AltosTelemetryRecord {
int[] bytes;
int serial;
int tick;
int type;
+ int rssi;
long received_time;
long received_time;
@@
-53,11
+54,12
@@
public class AltosTelemetryRecordRaw extends AltosTelemetryRecord {
return AltosLib.string(bytes, off + 1, l);
}
return AltosLib.string(bytes, off + 1, l);
}
- public AltosTelemetryRecordRaw(int[] in_bytes) {
+ public AltosTelemetryRecordRaw(int[] in_bytes
, int in_rssi
) {
bytes = in_bytes;
serial = uint16(0);
tick = uint16(2);
type = uint8(4);
bytes = in_bytes;
serial = uint16(0);
tick = uint16(2);
type = uint8(4);
+ rssi = in_rssi;
}
public AltosRecord update_state(AltosRecord previous) {
}
public AltosRecord update_state(AltosRecord previous) {
@@
-69,6
+71,7
@@
public class AltosTelemetryRecordRaw extends AltosTelemetryRecord {
next = new AltosRecordNone();
next.serial = serial;
next.tick = tick;
next = new AltosRecordNone();
next.serial = serial;
next.tick = tick;
+ next.rssi = rssi;
return next;
}
return next;
}