From 997cdef3fe04acdd566d287e70981f7b7934d0c8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 2 Apr 2013 16:44:58 -0700 Subject: 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 --- altoslib/AltosTelemetryRecordLocation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'altoslib/AltosTelemetryRecordLocation.java') 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); -- cgit v1.2.3