From 71e08f8484ded77da4541b19a15ae2d6bf355ad6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 25 Dec 2011 12:26:46 +1100 Subject: [PATCH] fixed the MPU6000 test sketch --- libraries/AP_InertialSensor/examples/MPU6000/MPU6000.pde | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_InertialSensor/examples/MPU6000/MPU6000.pde b/libraries/AP_InertialSensor/examples/MPU6000/MPU6000.pde index d45273df4c..c67db6b62f 100644 --- a/libraries/AP_InertialSensor/examples/MPU6000/MPU6000.pde +++ b/libraries/AP_InertialSensor/examples/MPU6000/MPU6000.pde @@ -31,6 +31,10 @@ void setup(void) isr_registry.init(); scheduler.init(&isr_registry); + // we need to stop the barometer from holding the SPI bus + pinMode(40, OUTPUT); + digitalWrite(40, HIGH); + ins.init(&scheduler); }