AP_IMU: fixed led flashing in gyro cal

thanks Pat!
This commit is contained in:
Andrew Tridgell 2012-03-06 21:52:41 +11:00
parent b39323bf1b
commit 2c279639a3
1 changed files with 1 additions and 1 deletions

View File

@ -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);