From 273492bc662655958ca40235067800a1946184e5 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Sun, 11 Dec 2011 14:50:02 -0800 Subject: [PATCH] ArduCopter: Revert "Switched to Gyro only startup" This reverts commit f932f0a9f6a29e9c3193622109298c657ed5a908. I fixed this bug in 734185599cd9d6a487c675460c09895172e012b0. It is no longer valid to call IMU::init_gyro() before IMU::init(). --- ArduCopter/system.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index 75bf7907c0..6904fad8fa 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -385,7 +385,7 @@ static void startup_ground(void) #if HIL_MODE != HIL_MODE_ATTITUDE // Warm up and read Gyro offsets // ----------------------------- - imu.init_gyro(mavlink_delay); + imu.init(IMU::COLD_START, mavlink_delay, &timer_scheduler); #if CLI_ENABLED == ENABLED report_imu(); #endif