Browse Source

Merge pull request #1770 from Sapd/master

Added port name matching fallback for detecting the Pixhawk FMUv2 on USB
QGC4.4
Lorenz Meier 10 years ago
parent
commit
bbb356fc50
  1. 9
      src/VehicleSetup/PX4FirmwareUpgradeThread.cc

9
src/VehicleSetup/PX4FirmwareUpgradeThread.cc

@ -172,6 +172,15 @@ bool PX4FirmwareUpgradeThreadWorker::_findBoardFromPorts(QSerialPortInfo& portIn
} }
break; break;
} }
if (!found) {
// Fall back to port name matching which could lead to incorrect board mapping. But in some cases the
// vendor and product id do not come through correctly so this is used as a last chance detection method.
if (info.description() == "PX4 FMU v2.x") {
qCDebug(FirmwareUpgradeLog) << "Found PX4 FMU V2 (by name matching fallback)";
type = FoundBoardPX4FMUV2;
found = true;
}
}
} }
if (found) { if (found) {

Loading…
Cancel
Save