diff options
| author | Keith Packard <keithp@keithp.com> | 2012-06-04 20:51:35 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-06-04 20:51:35 -0700 | 
| commit | 1832e2f76c844e97a2bd11226b003fb2af8057db (patch) | |
| tree | b4e4a6241c5b9a676527e9b0b213011347b8b03f /src | |
| parent | 06afa2c3e78ea5bc9f1eb4913ee35c0eab0ac1bf (diff) | |
altos: fix test builds of non-accel flight code
Remove references to accel variables when building baro-only flight
test code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/ao_flight_mm.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/core/ao_flight_mm.c b/src/core/ao_flight_mm.c index e812016e..2bc5c36a 100644 --- a/src/core/ao_flight_mm.c +++ b/src/core/ao_flight_mm.c @@ -359,9 +359,11 @@ static inline int frac_part(int16_t i)	{ return ((i & 0xf) * 100 + 8) / 16; }  static void  ao_flight_dump(void)  { +#if HAS_ACCEL  	int16_t	accel;  	accel = ((ao_ground_accel - ao_sample_accel) * ao_accel_scale) >> 16; +#endif  	printf ("sample:\n");  	printf ("  tick        %d\n", ao_sample_tick); @@ -378,7 +380,9 @@ ao_flight_dump(void)  	printf ("  alt         %d\n", ao_sample_alt);  	printf ("  height      %d\n", ao_sample_height); +#if HAS_ACCEL  	printf ("  accel       %d.%02d\n", int_part(accel), frac_part(accel)); +#endif  	printf ("kalman:\n"); | 
