mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: play sad tune when arming fails
This commit is contained in:
parent
b4a779aec3
commit
ed558dd9a0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user