Rover: play sad tune when arming fails

This commit is contained in:
Randy Mackay 2017-12-01 12:22:44 +09:00
parent b4a779aec3
commit ed558dd9a0

View File

@ -331,6 +331,7 @@ void Rover::change_arm_state(void)
bool Rover::arm_motors(AP_Arming::ArmingMethod method) bool Rover::arm_motors(AP_Arming::ArmingMethod method)
{ {
if (!arming.arm(method)) { if (!arming.arm(method)) {
AP_Notify::events.arming_failed = true;
return false; return false;
} }