From 321200ebbc4d83f62d9ff6a4bf9beb113a5e0ebc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 6 Mar 2012 21:52:41 +1100 Subject: [PATCH] AP_IMU: fixed led flashing in gyro cal thanks Pat! --- libraries/AP_IMU/AP_IMU_INS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_IMU/AP_IMU_INS.cpp b/libraries/AP_IMU/AP_IMU_INS.cpp index 500f4e0c88..188692e43d 100644 --- a/libraries/AP_IMU/AP_IMU_INS.cpp +++ b/libraries/AP_IMU/AP_IMU_INS.cpp @@ -99,7 +99,7 @@ AP_IMU_INS::_init_gyro(void (*delay_cb)(unsigned long t), void (*flash_leds_cb)( gyro_sum += Vector3f(ins_gyro[0], ins_gyro[1], ins_gyro[2]); if (i % 40 == 20) { FLASH_LEDS(true); - } else if (i % 40 == 20) { + } else if (i % 40 == 0) { FLASH_LEDS(false); } delay_cb(5);