Commit ed2bcaa0 authored by Don Gagne's avatar Don Gagne

Fix signal order problem

parent 674a5b7f
...@@ -194,14 +194,10 @@ void MultiVehicleManager::_autopilotPluginReadyChanged(bool pluginReady) ...@@ -194,14 +194,10 @@ void MultiVehicleManager::_autopilotPluginReadyChanged(bool pluginReady)
return; return;
} }
if (_activeVehicle) { if (autopilot->vehicle() == _activeVehicle) {
if (_activeVehicle->autopilotPlugin() == autopilot) {
_parameterReadyVehicleAvailable = pluginReady; _parameterReadyVehicleAvailable = pluginReady;
emit parameterReadyVehicleAvailableChanged(pluginReady); emit parameterReadyVehicleAvailableChanged(pluginReady);
} }
} else {
qWarning() << "Why no active vehicle?";
}
} }
void MultiVehicleManager::setHomePositionForAllVehicles(double lat, double lon, double alt) void MultiVehicleManager::setHomePositionForAllVehicles(double lat, double lon, double alt)
......
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