mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Copter: restore logging of arm/disarm event
This commit is contained in:
parent
94a05a9285
commit
bd6edecdec
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user