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>
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;
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:
device = AltosDeviceDialog.show(in_owner, Altos.product_any);
remote = false;
- if (!device.matchProduct(Altos.product_telemetrum))
+ if (!device.matchProduct(Altos.product_altimeter))
remote = true;
serial = device.getSerial();
serial = new AltosSerial(device);
remote = false;
- if (!device.matchProduct(Altos.product_telemetrum))
+ if (!device.matchProduct(Altos.product_altimeter))
remote = true;
}
}
\ No newline at end of file
if (want_product == Altos.product_basestation)
return matchProduct(Altos.product_teledongle) ||
matchProduct(Altos.product_teleterra) ||
- matchProduct(Altos.product_telebt);
+ matchProduct(Altos.product_telebt) ||
+ matchProduct(Altos.product_megadongle);
+
+ if (want_product == Altos.product_altimeter)
+ return matchProduct(Altos.product_telemetrum) ||
+ matchProduct(Altos.product_megametrum);
int have_product = getProduct();