From 9b24f413da0b6d989b32e8654a91c8deee4c81dd Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 17 Jun 2012 19:02:50 -0700 Subject: [PATCH] ao-tools: add rudimentary support for MM telemetry to ao-telem Just pretends they're TM packets for now Signed-off-by: Keith Packard --- ao-tools/ao-telem/ao-telem.c | 1 + ao-tools/lib/cc-telemetry.h | 1 + 2 files changed, 2 insertions(+) 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 */ -- 2.30.2