mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
ArduCopter: move logging of armed/disarm events into AP_Arming base class
This commit is contained in:
parent
62c0078d5f
commit
e1b3bd2e42
@ -784,8 +784,6 @@ bool AP_Arming_Copter::arm(const AP_Arming::Method method, const bool do_arming_
|
||||
// finally actually arm the motors
|
||||
copter.motors->armed(true);
|
||||
|
||||
AP::logger().Write_Event(LogEvent::ARMED);
|
||||
|
||||
// log flight mode in case it was changed while vehicle was disarmed
|
||||
AP::logger().Write_Mode((uint8_t)copter.control_mode, copter.control_mode_reason);
|
||||
|
||||
@ -853,8 +851,6 @@ bool AP_Arming_Copter::disarm()
|
||||
copter.set_land_complete(true);
|
||||
copter.set_land_complete_maybe(true);
|
||||
|
||||
AP::logger().Write_Event(LogEvent::DISARMED);
|
||||
|
||||
// send disarm command to motors
|
||||
copter.motors->armed(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user