ao-tools: add rudimentary support for MM telemetry to ao-telem
authorKeith Packard <keithp@keithp.com>
Mon, 18 Jun 2012 02:02:50 +0000 (19:02 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Jun 2012 02:02:50 +0000 (19:02 -0700)
Just pretends they're TM packets for now

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-telem/ao-telem.c
ao-tools/lib/cc-telemetry.h

index 6207d4331d3efc355476ecafffe07e22f8b0af16..384b2fc835253950678898e05a76ff703edfee39 100644 (file)
@@ -82,6 +82,7 @@ main (int argc, char **argv)
                                case AO_TELEMETRY_SENSOR_TELEMETRUM:
                                case AO_TELEMETRY_SENSOR_TELEMINI:
                                case AO_TELEMETRY_SENSOR_TELENANO:
+                               case AO_TELEMETRY_SENSOR_MEGAMETRUM:
                                        printf ("state %1d accel %5d pres %5d ",
                                                telem.sensor.state, telem.sensor.accel, telem.sensor.pres);
                                        printf ("accel %6.2f speed %6.2f height %5d ",
index 71f6844de4d65fd53f7e92a52e29b0af6b73b568..4e064a97a8bdba7ea448426f57d3b70d71a4095e 100644 (file)
@@ -37,6 +37,7 @@ struct ao_telemetry_generic {
 #define AO_TELEMETRY_SENSOR_TELEMETRUM 0x01
 #define AO_TELEMETRY_SENSOR_TELEMINI   0x02
 #define AO_TELEMETRY_SENSOR_TELENANO   0x03
+#define AO_TELEMETRY_SENSOR_MEGAMETRUM 0x08
 
 struct ao_telemetry_sensor {
        uint16_t        serial;         /*  0 */