diff --git a/src/FlightDisplay/GuidedActionsController.qml b/src/FlightDisplay/GuidedActionsController.qml index 1b29e7e39d37c159fe09cf2b1cda9dbed95c5faa..111b8e4f65b71205cf4105a2c601e8f7c77d0899 100644 --- a/src/FlightDisplay/GuidedActionsController.qml +++ b/src/FlightDisplay/GuidedActionsController.qml @@ -122,8 +122,8 @@ Item { property bool _hideOrbit: !QGroundControl.corePlugin.options.guidedBarShowOrbit property bool _vehicleWasFlying: false - // This is a temporary hack to debug a problem with RTL and Pause being disabled at the wrong time - + //Handy code for debugging state problems + /* property bool __guidedModeSupported: _activeVehicle ? _activeVehicle.guidedModeSupported : false property bool __pauseVehicleSupported: _activeVehicle ? _activeVehicle.pauseVehicleSupported : false property bool __flightMode: _flightMode @@ -140,11 +140,10 @@ Item { on__FlightModeChanged: _outputState() on__GuidedModeSupportedChanged: _outputState() on__PauseVehicleSupportedChanged: _outputState() - - // End of hack + */ on_VehicleFlyingChanged: { - _outputState() + //_outputState() if (!_vehicleFlying) { // We use _vehicleWasFLying to help trigger Resume Mission only if the vehicle actually flew and came back down. // Otherwise it may trigger during the Start Mission sequence due to signal ordering or armed and resume mission index.