Copter: Notify arming failure when using MAVLink

This commit is contained in:
Randy Mackay 2014-03-31 20:32:22 +09:00
parent 608b8b0a2c
commit 9e7021cc20

View File

@ -1273,6 +1273,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
init_arm_motors();
result = MAV_RESULT_ACCEPTED;
}else{
AP_Notify::flags.arming_failed = true; // init_arm_motors function will reset flag back to false
result = MAV_RESULT_UNSUPPORTED;
}
} else if (packet.param1 == 0.0f) {