summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-17 19:02:50 -0700
committerKeith Packard <keithp@keithp.com>2012-06-17 19:02:50 -0700
commit9b24f413da0b6d989b32e8654a91c8deee4c81dd (patch)
tree7b1bfd53a76619d09d3229fe70debf4541d1a5ce /ao-tools
parent4cb46b8a84a0dd5b8fcb479d7aa5157480e1bc67 (diff)
ao-tools: add rudimentary support for MM telemetry to ao-telem
Just pretends they're TM packets for now Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/ao-telem/ao-telem.c1
-rw-r--r--ao-tools/lib/cc-telemetry.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/ao-tools/ao-telem/ao-telem.c b/ao-tools/ao-telem/ao-telem.c
index 6207d433..384b2fc8 100644
--- a/ao-tools/ao-telem/ao-telem.c
+++ b/ao-tools/ao-telem/ao-telem.c
@@ -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 ",
diff --git a/ao-tools/lib/cc-telemetry.h b/ao-tools/lib/cc-telemetry.h
index 71f6844d..4e064a97 100644
--- a/ao-tools/lib/cc-telemetry.h
+++ b/ao-tools/lib/cc-telemetry.h
@@ -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 */