diff options
author | Keith Packard <keithp@keithp.com> | 2012-05-01 18:12:41 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-05-01 18:12:41 -0700 |
commit | 69feb1e3d94a028d04529edb015654bafd06353b (patch) | |
tree | 50e61697b1cd0bd943b2c853bddfee1c1bfcad94 /ao-tools/lib | |
parent | 8b08095b3d41e21684a10bddfb54431019da5af6 (diff) |
ao-tools: Add GPS and rssi printing to ao-telem
This prints all of the basic telemetrum messages now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib')
-rw-r--r-- | ao-tools/lib/cc-telemetry.c | 2 | ||||
-rw-r--r-- | ao-tools/lib/cc-telemetry.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ao-tools/lib/cc-telemetry.c b/ao-tools/lib/cc-telemetry.c index 2cdb9cac..99da2680 100644 --- a/ao-tools/lib/cc-telemetry.c +++ b/ao-tools/lib/cc-telemetry.c @@ -57,6 +57,6 @@ cc_telemetry_parse(const char *input_line, union ao_telemetry_all *telemetry) } if (hex[0] != 34) return FALSE; - memcpy(telemetry, hex+1, 32); + memcpy(telemetry, hex+1, 34); return TRUE; } diff --git a/ao-tools/lib/cc-telemetry.h b/ao-tools/lib/cc-telemetry.h index 5a66b971..71f6844d 100644 --- a/ao-tools/lib/cc-telemetry.h +++ b/ao-tools/lib/cc-telemetry.h @@ -29,7 +29,9 @@ struct ao_telemetry_generic { uint16_t tick; /* 2 */ uint8_t type; /* 4 */ uint8_t payload[27]; /* 5 */ - /* 32 */ + uint8_t rssi; /* 32 */ + uint8_t status; /* 33 */ + /* 34 */ }; #define AO_TELEMETRY_SENSOR_TELEMETRUM 0x01 |