diff --git a/src/MissionManager/GeoFenceController.cc b/src/MissionManager/GeoFenceController.cc index e9acf663ffdf1e63cafc4b706f0bd3402f111e1d..689349c5b96f4a45656e3856f2e30c706cace2bb 100644 --- a/src/MissionManager/GeoFenceController.cc +++ b/src/MissionManager/GeoFenceController.cc @@ -117,7 +117,9 @@ void GeoFenceController::managerVehicleChanged(Vehicle* managerVehicle) connect(_geoFenceManager, &GeoFenceManager::removeAllComplete, this, &GeoFenceController::_managerRemoveAllComplete); connect(_geoFenceManager, &GeoFenceManager::inProgressChanged, this, &GeoFenceController::syncInProgressChanged); + //-- GeoFenceController::supported() tests both the capability bit AND the protocol version. connect(_managerVehicle, &Vehicle::capabilityBitsChanged, this, &GeoFenceController::supportedChanged); + connect(_managerVehicle, &Vehicle::requestProtocolVersion, this, &GeoFenceController::supportedChanged); connect(_managerVehicle->parameterManager(), &ParameterManager::parametersReadyChanged, this, &GeoFenceController::_parametersReady); _parametersReady(); diff --git a/src/MissionManager/RallyPointController.cc b/src/MissionManager/RallyPointController.cc index e6f150f50ea3fc9b3b36149b607777c72976de64..60e9de40720faa4366b9a56fbd646feae6ba22ec 100644 --- a/src/MissionManager/RallyPointController.cc +++ b/src/MissionManager/RallyPointController.cc @@ -71,7 +71,9 @@ void RallyPointController::managerVehicleChanged(Vehicle* managerVehicle) connect(_rallyPointManager, &RallyPointManager::removeAllComplete, this, &RallyPointController::_managerRemoveAllComplete); connect(_rallyPointManager, &RallyPointManager::inProgressChanged, this, &RallyPointController::syncInProgressChanged); + //-- RallyPointController::supported() tests both the capability bit AND the protocol version. connect(_managerVehicle, &Vehicle::capabilityBitsChanged, this, &RallyPointController::supportedChanged); + connect(_managerVehicle, &Vehicle::requestProtocolVersion, this, &RallyPointController::supportedChanged); emit supportedChanged(supported()); }