Plane: removed check on target_component in ARM/DISARM
Thanks to DonLakeFlyer for finding this, see https://github.com/diydrones/ardupilot/pull/909
This commit is contained in:
parent
a345a9d993
commit
4257d8365c
@ -1160,7 +1160,6 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
break;
|
||||
|
||||
case MAV_CMD_COMPONENT_ARM_DISARM:
|
||||
if (packet.target_component == MAV_COMP_ID_SYSTEM_CONTROL) {
|
||||
if (packet.param1 == 1.0f) {
|
||||
// run pre_arm_checks and arm_checks and display failures
|
||||
if (arming.arm(AP_Arming::MAVLINK)) {
|
||||
@ -1187,9 +1186,6 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
} else {
|
||||
result = MAV_RESULT_UNSUPPORTED;
|
||||
}
|
||||
} else {
|
||||
result = MAV_RESULT_UNSUPPORTED;
|
||||
}
|
||||
break;
|
||||
|
||||
case MAV_CMD_DO_SET_MODE:
|
||||
|
Loading…
Reference in New Issue
Block a user