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
fe60f712
Commit
fe60f712
authored
Oct 27, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More work on the Fly View
parent
08eb9d5e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
197 additions
and
91 deletions
+197
-91
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+5
-1
compassInstrumentDial.svg
src/FlightMap/Images/compassInstrumentDial.svg
+76
-73
QGCCompassWidget.qml
src/FlightMap/Widgets/QGCCompassWidget.qml
+1
-3
QGCInstrumentWidget.qml
src/FlightMap/Widgets/QGCInstrumentWidget.qml
+115
-14
No files found.
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
fe60f712
...
...
@@ -77,13 +77,17 @@ Item {
//-- Instrument Pannel
QGCInstrumentWidget
{
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.bottom
:
parent
.
bottom
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
size
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
active
:
_activeVehicle
!=
null
heading
:
_heading
rollAngle
:
_roll
pitchAngle
:
_pitch
altitude
:
_altitudeWGS84
groundSpeed
:
_groundSpeed
airSpeed
:
_airSpeed
climbRate
:
_climbRate
isSatellite
:
_mainIsMap
?
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
:
true
z
:
QGroundControl
.
zOrderWidgets
}
...
...
src/FlightMap/Images/compassInstrumentDial.svg
View file @
fe60f712
This diff is collapsed.
Click to expand it.
src/FlightMap/Widgets/QGCCompassWidget.qml
View file @
fe60f712
...
...
@@ -49,9 +49,7 @@ Item {
id
:
borderRect
anchors.fill
:
parent
radius
:
width
/
2
color
:
"
#202020
"
border.color
:
"
black
"
border.width
:
2
color
:
"
black
"
}
Item
{
...
...
src/FlightMap/Widgets/QGCInstrumentWidget.qml
View file @
fe60f712
...
...
@@ -39,7 +39,10 @@ Item {
property
alias
heading
:
compass
.
heading
property
alias
rollAngle
:
attitude
.
rollAngle
property
alias
pitchAngle
:
attitude
.
pitchAngle
property
real
altitude
:
0
property
real
groundSpeed
:
0
property
real
airSpeed
:
0
property
real
climbRate
:
0
property
real
size
:
ScreenTools
.
defaultFontPixelSize
*
(
10
)
property
bool
isSatellite
:
false
property
bool
active
:
false
...
...
@@ -49,29 +52,127 @@ Item {
//-- Instrument Pannel
Rectangle
{
id
:
instrumentPannel
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
height
:
root
.
size
width
:
instruments
.
width
+
ScreenTools
.
defaultFontPixelSize
height
:
instruments
.
height
+
ScreenTools
.
defaultFontPixelSize
width
:
root
.
size
radius
:
root
.
size
/
2
visible
:
_isVisible
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.5
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.5
)
Row
{
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.75
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.75
)
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
Column
{
id
:
instruments
height
:
parent
.
height
spacing
:
ScreenTools
.
defaultFontPixelSize
/
2
anchors.horizontalCenter
:
parent
.
horizontalCenter
width
:
parent
.
width
spacing
:
ScreenTools
.
defaultFontPixelSize
*
0.33
anchors.verticalCenter
:
parent
.
verticalCenter
//-- Attitude Indicator
QGCAttitudeWidget
{
id
:
attitude
size
:
parent
.
height
*
0.9
size
:
parent
.
width
*
0.9
active
:
root
.
active
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
//-- Altitude
Rectangle
{
height
:
1
width
:
parent
.
width
*
0.9
color
:
isSatellite
?
Qt
.
rgba
(
0
,
0
,
0
,
0.25
)
:
Qt
.
rgba
(
1
,
1
,
1
,
0.25
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
Row
{
width
:
root
.
size
*
0.8
anchors.horizontalCenter
:
parent
.
horizontalCenter
QGCLabel
{
text
:
"
H
"
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
altitude
font.weight
:
Font
.
DemiBold
color
:
isSatellite
?
"
black
"
:
"
white
"
}
}
//-- Ground Speed
Rectangle
{
height
:
1
width
:
parent
.
width
*
0.9
color
:
isSatellite
?
Qt
.
rgba
(
0
,
0
,
0
,
0.25
)
:
Qt
.
rgba
(
1
,
1
,
1
,
0.25
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
Row
{
width
:
root
.
size
*
0.8
anchors.horizontalCenter
:
parent
.
horizontalCenter
QGCLabel
{
text
:
"
GS
"
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
groundSpeed
font.weight
:
Font
.
DemiBold
color
:
isSatellite
?
"
black
"
:
"
white
"
}
}
//-- Air Speed
Rectangle
{
height
:
1
width
:
parent
.
width
*
0.9
color
:
isSatellite
?
Qt
.
rgba
(
0
,
0
,
0
,
0.25
)
:
Qt
.
rgba
(
1
,
1
,
1
,
0.25
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
airSpeed
>
0
}
Row
{
width
:
root
.
size
*
0.8
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
airSpeed
>
0
QGCLabel
{
text
:
"
AS
"
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
airSpeed
font.weight
:
Font
.
DemiBold
color
:
isSatellite
?
"
black
"
:
"
white
"
}
}
//-- Climb Rate
Rectangle
{
height
:
1
width
:
parent
.
width
*
0.9
color
:
isSatellite
?
Qt
.
rgba
(
0
,
0
,
0
,
0.25
)
:
Qt
.
rgba
(
1
,
1
,
1
,
0.25
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
Row
{
width
:
root
.
size
*
0.8
anchors.horizontalCenter
:
parent
.
horizontalCenter
QGCLabel
{
text
:
"
VS
"
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
climbRate
font.weight
:
Font
.
DemiBold
color
:
isSatellite
?
"
black
"
:
"
white
"
}
}
//-- Compass
Rectangle
{
height
:
1
width
:
parent
.
width
*
0.9
color
:
isSatellite
?
Qt
.
rgba
(
0
,
0
,
0
,
0.25
)
:
Qt
.
rgba
(
1
,
1
,
1
,
0.25
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
QGCCompassWidget
{
id
:
compass
size
:
parent
.
height
*
0.9
size
:
parent
.
width
*
0.9
active
:
root
.
active
anchors.
verticalCenter
:
parent
.
vertic
alCenter
anchors.
horizontalCenter
:
parent
.
horizont
alCenter
}
}
MouseArea
{
...
...
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