From 7cb9fb675f56bf30ab6bf0bcdc5cb679709ffe3e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 17 May 2009 22:29:54 -0700 Subject: Send computed accel/vel/pres values over the radio These computed values reflect what the flight computer is actually refering to for state changes, and will be useful in debugging the flight software as well as provide a filtered view of the data. Signed-off-by: Keith Packard --- ao.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ao.h') diff --git a/ao.h b/ao.h index 76fc00ce..31558529 100644 --- a/ao.h +++ b/ao.h @@ -568,6 +568,7 @@ extern __pdata enum ao_flight_state ao_flight_state; extern __pdata uint16_t ao_flight_tick; extern __pdata int16_t ao_flight_accel; extern __pdata int16_t ao_flight_pres; +extern __pdata int32_t ao_flight_vel; extern __pdata int16_t ao_ground_pres; extern __pdata int16_t ao_ground_accel; extern __pdata int16_t ao_min_pres; @@ -723,6 +724,9 @@ ao_gps_report_init(void); struct ao_telemetry { uint8_t addr; uint8_t flight_state; + int16_t flight_accel; + int32_t flight_vel; + int16_t flight_pres; struct ao_adc adc; struct ao_gps_data gps; char callsign[AO_MAX_CALLSIGN]; -- cgit v1.2.3