ArduSub: move logging of armed/disarm events into AP_Arming base class

This commit is contained in:
Peter Barker 2020-01-08 14:51:57 +11:00 committed by Andrew Tridgell
parent e1b3bd2e42
commit 354e44a51e
1 changed files with 0 additions and 4 deletions

View File

@ -139,8 +139,6 @@ bool AP_Arming_Sub::arm(AP_Arming::Method method, bool do_arming_checks)
// finally actually arm the motors
sub.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(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
sub.motors.armed(false);