diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-17 19:01:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-17 19:01:24 -0700 |
commit | 4cb46b8a84a0dd5b8fcb479d7aa5157480e1bc67 (patch) | |
tree | 38e7d3b5ef12ce623b905f747bb451375b56d887 /altoslib | |
parent | 55747ce210d7d80d5b4fdaaf9dc7ee0f7bc8b0a3 (diff) |
altosui: Add rudimentary MM support to altosui
Decoded the MM sensor packets as if they were TM packets.
Add the USB ids.
Add class of 'altimeter' devices and match those instead of just
telemetrum as appropriate.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r-- | altoslib/AltosTelemetryRecord.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/altoslib/AltosTelemetryRecord.java b/altoslib/AltosTelemetryRecord.java index 4292dae8..6b6a252d 100644 --- a/altoslib/AltosTelemetryRecord.java +++ b/altoslib/AltosTelemetryRecord.java @@ -42,6 +42,7 @@ public abstract class AltosTelemetryRecord { final static int packet_type_location = 0x05; final static int packet_type_satellite = 0x06; final static int packet_type_companion = 0x07; + final static int packet_type_MM_sensor = 0x08; static AltosTelemetryRecord parse_hex(String hex) throws ParseException, AltosCRCException { AltosTelemetryRecord r; @@ -75,6 +76,7 @@ public abstract class AltosTelemetryRecord { case packet_type_TM_sensor: case packet_type_Tm_sensor: case packet_type_Tn_sensor: + case packet_type_MM_sensor: r = new AltosTelemetryRecordSensor(bytes, rssi); break; case packet_type_configuration: |