diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-02 16:44:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-02 16:44:58 -0700 |
commit | 997cdef3fe04acdd566d287e70981f7b7934d0c8 (patch) | |
tree | c66a843a9910add9df89cf68149c8f7ea06ea749 /altoslib/AltosTelemetryRecordSatellite.java | |
parent | 0cd203e418e73a1f11460425985b7575c2f0a76c (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/AltosTelemetryRecordSatellite.java')
-rw-r--r-- | altoslib/AltosTelemetryRecordSatellite.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altoslib/AltosTelemetryRecordSatellite.java b/altoslib/AltosTelemetryRecordSatellite.java index 3e93b337..9835389b 100644 --- a/altoslib/AltosTelemetryRecordSatellite.java +++ b/altoslib/AltosTelemetryRecordSatellite.java @@ -21,8 +21,8 @@ public class AltosTelemetryRecordSatellite extends AltosTelemetryRecordRaw { int channels; AltosGPSSat[] sats; - public AltosTelemetryRecordSatellite(int[] in_bytes) { - super(in_bytes); + public AltosTelemetryRecordSatellite(int[] in_bytes, int rssi) { + super(in_bytes, rssi); channels = uint8(5); if (channels > 12) |