Copter: restore logging of arm/disarm event

This commit is contained in:
Randy Mackay 2013-05-13 18:07:28 +09:00
parent 94a05a9285
commit bd6edecdec

View File

@ -150,6 +150,9 @@ static void init_arm_motors()
// finally actually arm the motors
motors.armed(true);
// log arming to dataflash
Log_Write_Event(DATA_ARMED);
// reenable failsafe
failsafe_enable();
}
@ -213,6 +216,9 @@ static void init_disarm_motors()
ahrs2.set_fast_gains(true);
#endif
// log disarm to the dataflash
Log_Write_Event(DATA_DISARMED);
// disable gps velocity based centrefugal force compensation
ahrs.set_correct_centrifugal(false);
}