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
45c88c94
Unverified
Commit
45c88c94
authored
Dec 25, 2019
by
Don Gagne
Committed by
GitHub
Dec 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8182 from DonLakeFlyer/FWLanding
FW Landing visuals
parents
4fba7c63
fb394e51
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
33 deletions
+65
-33
FWLandingPatternEditor.qml
src/PlanView/FWLandingPatternEditor.qml
+31
-8
FWLandingPatternMapVisual.qml
src/PlanView/FWLandingPatternMapVisual.qml
+4
-1
HeightIndicator.qml
src/QmlControls/HeightIndicator.qml
+29
-23
MissionItemIndexLabel.qml
src/QmlControls/MissionItemIndexLabel.qml
+1
-1
No files found.
src/PlanView/FWLandingPatternEditor.qml
View file @
45c88c94
...
...
@@ -215,14 +215,37 @@ Rectangle {
}
}
QGCLabel
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
font.pointSize
:
ScreenTools
.
smallFontPointSize
horizontalAlignment
:
Text
.
AlignHCenter
text
:
qsTr
(
"
* Glide slope altitudes are approximate. Actual flight path will vary due to environmental conditions and vehicle settings.
"
)
Column
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
0
QGCLabel
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
font.pointSize
:
ScreenTools
.
smallFontPointSize
text
:
qsTr
(
"
* Approximate glide slope altitudes.
"
)
}
QGCLabel
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
font.pointSize
:
ScreenTools
.
smallFontPointSize
text
:
qsTr
(
"
* Actual flight path will vary.
"
)
}
QGCLabel
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
font.pointSize
:
ScreenTools
.
smallFontPointSize
text
:
qsTr
(
"
* Avoid tailwind on landing.
"
)
}
}
}
...
...
src/PlanView/FWLandingPatternMapVisual.qml
View file @
45c88c94
...
...
@@ -256,7 +256,7 @@ Item {
sourceItem
:
MissionItemIndexLabel
{
index
:
_missionItem
.
sequenceNumber
label
:
"
Loiter
"
label
:
qsTr
(
"
Loiter
"
)
checked
:
_missionItem
.
isCurrentItem
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
...
...
@@ -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 @
45c88c94
...
...
@@ -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
}
}
src/QmlControls/MissionItemIndexLabel.qml
View file @
45c88c94
...
...
@@ -92,7 +92,7 @@ Canvas {
anchors.left
:
indicator
.
right
anchors.top
:
indicator
.
top
anchors.bottom
:
indicator
.
bottom
color
:
"
white
"
color
:
"
black
"
text
:
_label
verticalAlignment
:
Text
.
AlignVCenter
visible
:
labelControl
.
visible
...
...
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