diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-25 21:14:42 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-25 21:14:42 -0700 |
commit | 535271f7312f1a88af11d4f1dbf3d405b660f26c (patch) | |
tree | 15e14748572e261fba7a3bffcbb2d86223d562bb /src/test/ao_flight_test.c | |
parent | 1894b51daceaf9fb6b49a0625e09a366985d15b6 (diff) |
altos/test: Fix ADC structure for mega, use ao_config.h
This switches from hand-coding the ao_config structure to using
ao_config.h and also updates the ADC structure for ao_flight_test_mega
to using the same one as telemega does natively
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/ao_flight_test.c')
-rw-r--r-- | src/test/ao_flight_test.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/test/ao_flight_test.c b/src/test/ao_flight_test.c index 1ee3ad27..0647fc6c 100644 --- a/src/test/ao_flight_test.c +++ b/src/test/ao_flight_test.c @@ -49,13 +49,12 @@ int ao_gps_new; #define HAS_MPU6000 1 #define HAS_MMA655X 1 #define HAS_HMC5883 1 +#define HAS_BEEP 1 struct ao_adc { int16_t sense[AO_ADC_NUM_SENSE]; int16_t v_batt; int16_t v_pbatt; - int16_t accel_ref; - int16_t accel; int16_t temp; }; #else @@ -317,22 +316,8 @@ struct ao_ms5607_prom ao_ms5607_prom; #include "ao_convert.c" #endif -struct ao_config { - uint16_t main_deploy; - int16_t accel_plus_g; - int16_t accel_minus_g; - uint8_t pad_orientation; - uint16_t apogee_lockout; -#if TELEMEGA - struct ao_pyro pyro[AO_PYRO_NUM]; /* minor version 12 */ - int16_t accel_zero_along; - int16_t accel_zero_across; - int16_t accel_zero_through; -#endif -}; - -#define AO_PAD_ORIENTATION_ANTENNA_UP 0 -#define AO_PAD_ORIENTATION_ANTENNA_DOWN 1 +#include <ao_config.h> +#include <ao_fake_flight.h> #define ao_config_get() @@ -1003,6 +988,7 @@ void run_flight_fixed(char *name, FILE *f, int summary, char *info) emulator_in = f; emulator_info = info; ao_summary = summary; + ao_flight_init(); ao_flight(); } |