summaryrefslogtreecommitdiff
path: root/altoslib/AltosTelemetryRecordLocation.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-02 16:44:58 -0700
committerKeith Packard <keithp@keithp.com>2013-04-02 16:44:58 -0700
commit997cdef3fe04acdd566d287e70981f7b7934d0c8 (patch)
treec66a843a9910add9df89cf68149c8f7ea06ea749 /altoslib/AltosTelemetryRecordLocation.java
parent0cd203e418e73a1f11460425985b7575c2f0a76c (diff)
altoslib: Make any incoming telem packet update the RSSI value
Every packet has RSSI info, so use the latest one available. This makes telegps RSSI available as it never sends sensor packets (having no sensors). Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosTelemetryRecordLocation.java')
-rw-r--r--altoslib/AltosTelemetryRecordLocation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/altoslib/AltosTelemetryRecordLocation.java b/altoslib/AltosTelemetryRecordLocation.java
index 469a5400..02999696 100644
--- a/altoslib/AltosTelemetryRecordLocation.java
+++ b/altoslib/AltosTelemetryRecordLocation.java
@@ -37,8 +37,8 @@ public class AltosTelemetryRecordLocation extends AltosTelemetryRecordRaw {
int climb_rate;
int course;
- public AltosTelemetryRecordLocation(int[] in_bytes) {
- super(in_bytes);
+ public AltosTelemetryRecordLocation(int[] in_bytes, int rssi) {
+ super(in_bytes, rssi);
flags = uint8(5);
altitude = int16(6);