mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
ArduSub: move logging of armed/disarm events into AP_Arming base class
This commit is contained in:
parent
e1b3bd2e42
commit
354e44a51e
@ -139,8 +139,6 @@ bool AP_Arming_Sub::arm(AP_Arming::Method method, bool do_arming_checks)
|
|||||||
// finally actually arm the motors
|
// finally actually arm the motors
|
||||||
sub.motors.armed(true);
|
sub.motors.armed(true);
|
||||||
|
|
||||||
AP::logger().Write_Event(LogEvent::ARMED);
|
|
||||||
|
|
||||||
// log flight mode in case it was changed while vehicle was disarmed
|
// log flight mode in case it was changed while vehicle was disarmed
|
||||||
AP::logger().Write_Mode(sub.control_mode, sub.control_mode_reason);
|
AP::logger().Write_Mode(sub.control_mode, sub.control_mode_reason);
|
||||||
|
|
||||||
@ -184,8 +182,6 @@ bool AP_Arming_Sub::disarm()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AP::logger().Write_Event(LogEvent::DISARMED);
|
|
||||||
|
|
||||||
// send disarm command to motors
|
// send disarm command to motors
|
||||||
sub.motors.armed(false);
|
sub.motors.armed(false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user