diff options
author | Keith Packard <keithp@keithp.com> | 2009-11-03 00:40:38 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-11-03 00:40:38 -0800 |
commit | 1de322b960005c9a16051afa1881fadb00f4bcd6 (patch) | |
tree | 7b60481ac08b3f4e0362efdecab5fcefe299cad2 /src/ao.h | |
parent | b529e5e8998702986909111a457f3ce9932e1ccf (diff) |
Pass accel calibration over telemetry stream. Telemetry data format change.
This allows the ground station to convert the accelerometer sensor
values into acceleration and speed data. This requires a new telemetry
data structure, and so TeleMetrum and TeleDongle units must be updated
synchronously. ao-view will parse either telemetry stream, and the
serial format from TeleDongle now has a version number to allow for
future changes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r-- | src/ao.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -784,6 +784,7 @@ ao_gps_report_init(void); */ #define AO_MAX_CALLSIGN 8 +#define AO_TELEMETRY_VERSION 1 struct ao_telemetry { uint8_t addr; @@ -793,6 +794,8 @@ struct ao_telemetry { int32_t flight_vel; int16_t flight_pres; int16_t ground_pres; + int16_t accel_plus_g; + int16_t accel_minus_g; struct ao_adc adc; struct ao_gps_data gps; char callsign[AO_MAX_CALLSIGN]; |