diff --git a/src/PlanView/FWLandingPatternEditor.qml b/src/PlanView/FWLandingPatternEditor.qml index c83d95ebe00..cd8e8ff62f0 100644 --- a/src/PlanView/FWLandingPatternEditor.qml +++ b/src/PlanView/FWLandingPatternEditor.qml @@ -41,7 +41,7 @@ Rectangle { property string _setToVehicleLocationStr: qsTr("Set to vehicle location") property bool _showCameraSection: !_missionVehicle.apmFirmware property int _altitudeMode: missionItem.altitudesAreRelative ? QGroundControl.AltitudeModeRelative : QGroundControl.AltitudeModeAbsolute - property real _previousLoiterRadius: 0 + property real _previousLoiterRadius: missionItem.loiterRadius.rawValue Column { id: editorColumn @@ -74,12 +74,8 @@ Rectangle { // glide slope heading correctly onCheckedChanged: { if (checked) { - // Restore the previous loiter radius or set the default value - if (_previousLoiterRadius > 0) { - missionItem.loiterRadius.rawValue = _previousLoiterRadius - } else { - missionItem.loiterRadius.rawValue = missionItem.loiterRadius.defaultValue - } + // Restore the previous loiter radius + missionItem.loiterRadius.rawValue = _previousLoiterRadius } else { _previousLoiterRadius = missionItem.loiterRadius.rawValue missionItem.loiterRadius.rawValue = 0