Copter: fix to allow arming in Guided from GCS

This commit is contained in:
Randy Mackay 2015-02-10 22:12:38 +09:00
parent a8c176f104
commit 99ca779718

View File

@ -1177,7 +1177,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
case MAV_CMD_COMPONENT_ARM_DISARM: case MAV_CMD_COMPONENT_ARM_DISARM:
if (packet.param1 == 1.0f) { if (packet.param1 == 1.0f) {
// attempt to arm and return success or failure // attempt to arm and return success or failure
if (init_arm_motors(false)) { if (init_arm_motors(true)) {
result = MAV_RESULT_ACCEPTED; result = MAV_RESULT_ACCEPTED;
} else { } else {
result = MAV_RESULT_UNSUPPORTED; result = MAV_RESULT_UNSUPPORTED;