diff options
author | Keith Packard <keithp@keithp.com> | 2011-06-22 12:27:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-06-27 19:16:42 -0700 |
commit | 489a68ba8e3bc360e2e8fc887e4c4b840b5a0dd3 (patch) | |
tree | 7cebdbd3b9b67e07ec20f4e1381868c3c49dd7c2 /src/ao.h | |
parent | 0e67b6890dd3a06665239f8dfd2e69266d055e46 (diff) |
altos: Add arbitrary telemetry packet monitoring
This adds the ability to monitor arbitrary telemetry packets (up to
128 bytes), moving the telemetry data parsing up to the host.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r-- | src/ao.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1036,12 +1036,13 @@ void ao_gps_report_init(void); /* - * ao_telemetry.c + * ao_telemetry_orig.c */ #define AO_MAX_CALLSIGN 8 +#define AO_MAX_TELEMETRY 128 -struct ao_telemetry { +struct ao_telemetry_orig { uint16_t serial; uint16_t flight; uint8_t flight_state; @@ -1080,6 +1081,10 @@ struct ao_telemetry_tiny { * ao_radio_recv tacks on rssi and status bytes */ +struct ao_telemetry_raw_recv { + uint8_t packet[AO_MAX_TELEMETRY + 2]; +}; + struct ao_telemetry_orig_recv { struct ao_telemetry_orig telemetry_orig; int8_t rssi; |