altos: Try IMU self-test 10 times before giving up
authorKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 04:32:05 +0000 (20:32 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 04:32:05 +0000 (20:32 -0800)
commitee4279613b4757453d0d8f8afc06037c61eeb520
tree5aa198d54fa3c735f147aeb327738ee4c6a9b21f
parent1bf84ec28a41f7bd1b11ba45b4639856266227bc
altos: Try IMU self-test 10 times before giving up

This should keep the device from failing to boot unless the IMU is
actually broken. Oh, and if self test does fail, this places the
flight computer in 'Invalid' state rather than panic.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_flight.c
src/core/ao_flight.h
src/drivers/ao_mpu6000.c
src/telemega-v0.1/ao_pins.h
src/telemega-v1.0/ao_pins.h