summaryrefslogtreecommitdiff
path: root/src/telemega-v0.1
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-18 20:32:05 -0800
committerKeith Packard <keithp@keithp.com>2013-12-18 20:32:05 -0800
commitee4279613b4757453d0d8f8afc06037c61eeb520 (patch)
tree5aa198d54fa3c735f147aeb327738ee4c6a9b21f /src/telemega-v0.1
parent1bf84ec28a41f7bd1b11ba45b4639856266227bc (diff)
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>
Diffstat (limited to 'src/telemega-v0.1')
-rw-r--r--src/telemega-v0.1/ao_pins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/telemega-v0.1/ao_pins.h b/src/telemega-v0.1/ao_pins.h
index 7ba3a1a7..daeb9f17 100644
--- a/src/telemega-v0.1/ao_pins.h
+++ b/src/telemega-v0.1/ao_pins.h
@@ -316,6 +316,7 @@ struct ao_adc {
#define AO_MPU6000_INT_PORT (&stm_gpioc)
#define AO_MPU6000_INT_PIN 13
#define AO_MPU6000_I2C_INDEX STM_I2C_INDEX(1)
+#define HAS_IMU 1
/*
* mma655x