Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bf956096
Commit
bf956096
authored
Dec 25, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
d5f7442e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
23 deletions
+32
-23
FWLandingPatternMapVisual.qml
src/PlanView/FWLandingPatternMapVisual.qml
+3
-0
HeightIndicator.qml
src/QmlControls/HeightIndicator.qml
+29
-23
No files found.
src/PlanView/FWLandingPatternMapVisual.qml
View file @
bf956096
...
...
@@ -457,6 +457,7 @@ Item {
visible
:
_missionItem
.
isCurrentItem
sourceItem
:
HeightIndicator
{
map
:
_root
.
map
heightText
:
Math
.
floor
(
QGroundControl
.
metersToAppSettingsDistanceUnits
(
_transitionAltitudeMeters
))
+
QGroundControl
.
appSettingsDistanceUnitsString
+
"
<sup>*</sup>
"
}
...
...
@@ -488,6 +489,7 @@ Item {
visible
:
_missionItem
.
isCurrentItem
sourceItem
:
HeightIndicator
{
map
:
_root
.
map
heightText
:
Math
.
floor
(
QGroundControl
.
metersToAppSettingsDistanceUnits
(
_midSlopeAltitudeMeters
))
+
QGroundControl
.
appSettingsDistanceUnitsString
+
"
<sup>*</sup>
"
}
...
...
@@ -522,6 +524,7 @@ Item {
coordinate
:
_missionItem
.
loiterTangentCoordinate
sourceItem
:
HeightIndicator
{
map
:
_root
.
map
heightText
:
_missionItem
.
loiterAltitude
.
value
.
toFixed
(
1
)
+
QGroundControl
.
appSettingsDistanceUnitsString
}
}
...
...
src/QmlControls/HeightIndicator.qml
View file @
bf956096
...
...
@@ -2,45 +2,51 @@ import QtQuick 2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Layouts
1.11
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
Palette
1.0
ColumnLayout
{
spacing
:
0
id
:
_root
spacing
:
0
property
color
textColor
:
"
white
"
property
var
map
property
string
heightText
:
"
30 ft
"
property
color
_textColor
:
_mapPalette
.
text
QGCMapPalette
{
id
:
_mapPalette
;
lightColors
:
_root
.
map
.
isSatelliteMap
}
Rectangle
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
3
height
:
1
color
:
textColor
Layout.alignment
:
Qt
.
AlignHCenter
width
:
ScreenTools
.
defaultFontPixelWidth
*
3
height
:
1
color
:
_
textColor
Layout.alignment
:
Qt
.
AlignHCenter
}
Rectangle
{
width
:
1
height
:
ScreenTools
.
defaultFontPixelWidth
*
1
color
:
textColor
Layout.alignment
:
Qt
.
AlignHCenter
width
:
1
height
:
ScreenTools
.
defaultFontPixelWidth
*
1
color
:
_
textColor
Layout.alignment
:
Qt
.
AlignHCenter
}
QGCLabel
{
text
:
heightText
color
:
textColor
Layout.alignment
:
Qt
.
AlignHCenter
QGC
Map
Label
{
map
:
_root
.
map
text
:
heightText
Layout.alignment
:
Qt
.
AlignHCenter
}
Rectangle
{
width
:
1
height
:
ScreenTools
.
defaultFontPixelWidth
*
1
color
:
textColor
Layout.alignment
:
Qt
.
AlignHCenter
width
:
1
height
:
ScreenTools
.
defaultFontPixelWidth
*
1
color
:
_
textColor
Layout.alignment
:
Qt
.
AlignHCenter
}
Rectangle
{
width
:
ScreenTools
.
defaultFontPixelWidth
*
3
height
:
1
color
:
textColor
Layout.alignment
:
Qt
.
AlignHCenter
width
:
ScreenTools
.
defaultFontPixelWidth
*
3
height
:
1
color
:
_
textColor
Layout.alignment
:
Qt
.
AlignHCenter
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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