Copter: fix to allow arming in Guided from GCS
This commit is contained in:
parent
a8c176f104
commit
99ca779718
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user