Commit 6805ee2b authored by Don Gagne's avatar Don Gagne

Fix altitude slider min/max

parent 5c19516e
...@@ -408,7 +408,7 @@ Item { ...@@ -408,7 +408,7 @@ Item {
break; break;
case confirmTakeoff: case confirmTakeoff:
altitudeSlider.visible = true altitudeSlider.visible = true
altitudeSlider.setInitialValueMeters(10) altitudeSlider.setInitialValueMeters(2)
guidedModeConfirm.confirmText = qsTr("takeoff") guidedModeConfirm.confirmText = qsTr("takeoff")
break; break;
case confirmLand: case confirmLand:
...@@ -582,8 +582,8 @@ Item { ...@@ -582,8 +582,8 @@ Item {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
orientation: Qt.Vertical orientation: Qt.Vertical
minimumValue: QGroundControl.metersToAppSettingsDistanceUnits((_activeVehicle && _activeVehicle.flying) ? -15 : 0) minimumValue: QGroundControl.metersToAppSettingsDistanceUnits(2)
maximumValue: QGroundControl.metersToAppSettingsDistanceUnits((_activeVehicle && _activeVehicle.flying) ? 15 : 60) maximumValue: QGroundControl.metersToAppSettingsDistanceUnits((_activeVehicle && _activeVehicle.flying) ? 100 : 10)
} }
} }
} }
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