From f2652d23bfc68bdc9911ebcbdf0251a985d991ad Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Sat, 10 Dec 2011 13:32:47 -0800 Subject: [PATCH] ArduPlane: calibrate accel with imu.init_accel after imu.init * complements commit 73418559, where init_accel was eliminated from AP_IMU_INS::init cold start. --- ArduPlane/system.pde | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/system.pde b/ArduPlane/system.pde index a571914f6f..4c00fa7760 100644 --- a/ArduPlane/system.pde +++ b/ArduPlane/system.pde @@ -452,6 +452,7 @@ static void startup_IMU_ground(void) mavlink_delay(1000); imu.init(IMU::COLD_START, mavlink_delay, &timer_scheduler); + imu.init_accel(mavlink_delay); dcm.set_centripetal(1); // read Baro pressure at ground