Unverified Commit 97ef8282 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8588 from DonLakeFlyer/SoloMissionItemInt

ArduPilot: Only force MISSION_ITEM_INT if vehicle support bit is set
parents db63cacb cabb4d2a
......@@ -540,8 +540,10 @@ void PlanManager::_handleMissionRequest(const mavlink_message_t& message, bool m
MissionItem* item = _writeMissionItems[missionRequestSeq];
qCDebug(PlanManagerLog) << QStringLiteral("_handleMissionRequest %1 sequenceNumber:command").arg(_planTypeString()) << missionRequestSeq << item->command();
// ArduPilot always expects to get MISSION_ITEM_INT if possible
bool forceMissionItemInt = (_vehicle->capabilityBits() & MAV_PROTOCOL_CAPABILITY_MISSION_INT) && _vehicle->apmFirmware();
mavlink_message_t messageOut;
if (missionItemInt || _vehicle->apmFirmware() /* ArduPilot always expects to get MISSION_ITEM_INT no matter what */) {
if (missionItemInt || forceMissionItemInt) {
mavlink_msg_mission_item_int_pack_chan(qgcApp()->toolbox()->mavlinkProtocol()->getSystemId(),
qgcApp()->toolbox()->mavlinkProtocol()->getComponentId(),
_dedicatedLink->mavlinkChannel(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment