From: Keith Packard Date: Tue, 14 May 2013 17:48:24 +0000 (-0700) Subject: altos: Add 3 second delay to let mpu6000 come to life X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e1c3fc8d2a1504b9801a710cbf79cfeb7daf4b66;p=fw%2Faltos altos: Add 3 second delay to let mpu6000 come to life Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_mpu6000.c b/src/drivers/ao_mpu6000.c index fc768cc9..38d29b8c 100644 --- a/src/drivers/ao_mpu6000.c +++ b/src/drivers/ao_mpu6000.c @@ -161,12 +161,15 @@ ao_mpu6000_setup(void) if (ao_mpu6000_configured) return; + ao_delay(AO_SEC_TO_TICKS(3)); + /* Reset the whole chip */ ao_mpu6000_reg_write(MPU6000_PWR_MGMT_1, (1 << MPU6000_PWR_MGMT_1_DEVICE_RESET)); /* Wait for it to reset. If we talk too quickly, it appears to get confused */ + ao_delay(AO_SEC_TO_TICKS(3)); ao_delay(AO_MS_TO_TICKS(100)); /* Reset signal conditioning */