summaryrefslogtreecommitdiff
path: root/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-17 22:29:54 -0700
committerKeith Packard <keithp@keithp.com>2009-05-17 22:29:54 -0700
commit7cb9fb675f56bf30ab6bf0bcdc5cb679709ffe3e (patch)
tree3bd1f4cce887c142790e31a0d35d55796e1b8df0 /ao.h
parent2c780d67b8a22d75a2da4b2af21fd35f0c6f5236 (diff)
Send computed accel/vel/pres values over the radio0.3
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 <keithp@keithp.com>
Diffstat (limited to 'ao.h')
-rw-r--r--ao.h4
1 files changed, 4 insertions, 0 deletions
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];