Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
7af2d5a9
Commit
7af2d5a9
authored
Jan 31, 2017
by
Don Gagne
Committed by
GitHub
Jan 31, 2017
Browse files
Merge pull request #4473 from dagar/altitude_change
guided mode altitude slider better maximum
parents
57e11c97
525f9681
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
7af2d5a9
...
...
@@ -452,8 +452,8 @@ Item {
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
orientation
:
Qt
.
Vertical
minimumValue
:
QGroundControl
.
metersToAppSettingsDistanceUnits
(
2
)
maximumValue
:
QGroundControl
.
metersToAppSettingsDistanceUnits
((
_activeVehicle
&&
_activeVehicle
.
flying
)
?
100
:
10
)
minimumValue
:
QGroundControl
.
metersToAppSettingsDistanceUnits
(
0
)
maximumValue
:
QGroundControl
.
metersToAppSettingsDistanceUnits
((
_activeVehicle
&&
_activeVehicle
.
flying
)
?
Math
.
round
((
_activeVehicle
.
altitudeRelative
.
value
+
100
)
/
100
)
*
100
:
10
)
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment