Browse Source

Merge pull request #4047 from DonLakeFlyer/CommandLisFix

Mission command tree respects FirmwarePlugin::supportedMissionCommands
QGC4.4
Don Gagne 9 years ago committed by GitHub
parent
commit
adf3fd9032
  1. 5
      src/MissionManager/MissionCommandTree.cc

5
src/MissionManager/MissionCommandTree.cc

@ -101,6 +101,11 @@ void MissionCommandTree::_collapseHierarchy(Vehicle* @@ -101,6 +101,11 @@ void MissionCommandTree::_collapseHierarchy(Vehicle*
_baseVehicleInfo(vehicle, baseFirmwareType, baseVehicleType);
foreach (MAV_CMD command, cmdList->commandIds()) {
// Only add supported command to tree (MAV_CMD_NAV_LAST is used for planned home position)
if (!qgcApp()->runningUnitTests() && !vehicle->firmwarePlugin()->supportedMissionCommands().contains(command) && command != MAV_CMD_NAV_LAST) {
continue;
}
MissionCommandUIInfo* uiInfo = cmdList->getUIInfo(command);
if (uiInfo) {
if (collapsedTree.contains(command)) {

Loading…
Cancel
Save