|
|
|
@ -75,8 +75,9 @@ void MultiVehicleManager::setToolbox(QGCToolbox *toolbox)
@@ -75,8 +75,9 @@ void MultiVehicleManager::setToolbox(QGCToolbox *toolbox)
|
|
|
|
|
void MultiVehicleManager::_vehicleHeartbeatInfo(LinkInterface* link, int vehicleId, int componentId, int vehicleMavlinkVersion, int vehicleFirmwareType, int vehicleType) |
|
|
|
|
{ |
|
|
|
|
if (componentId != MAV_COMP_ID_AUTOPILOT1) { |
|
|
|
|
// Special case for PX4 Flow
|
|
|
|
|
if (vehicleId != 81 || componentId != 50) { |
|
|
|
|
// Don't create vehicles for components other than the autopilot
|
|
|
|
|
if (!getVehicleById(vehicleId)) { |
|
|
|
|
qCDebug(MultiVehicleManagerLog()) << "Ignoring heartbeat from unknown component " |
|
|
|
|
<< link->getName() |
|
|
|
|
<< vehicleId |
|
|
|
@ -84,9 +85,9 @@ void MultiVehicleManager::_vehicleHeartbeatInfo(LinkInterface* link, int vehicle
@@ -84,9 +85,9 @@ void MultiVehicleManager::_vehicleHeartbeatInfo(LinkInterface* link, int vehicle
|
|
|
|
|
<< vehicleMavlinkVersion |
|
|
|
|
<< vehicleFirmwareType |
|
|
|
|
<< vehicleType; |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (_vehicles.count() > 0 && !qgcApp()->toolbox()->corePlugin()->options()->multiVehicleEnabled()) { |
|
|
|
|
return; |
|
|
|
|