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
b051e8b8
Commit
b051e8b8
authored
Oct 28, 2015
by
Gus Grubba
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2130 from dogmaphobic/telemetryData
Adjustments to Telemetry Data
parents
a1acb4ab
c4aecb7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
84 deletions
+53
-84
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+4
-2
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+1
-2
QGCInstrumentWidget.qml
src/FlightMap/Widgets/QGCInstrumentWidget.qml
+48
-80
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
b051e8b8
...
...
@@ -75,6 +75,8 @@ Item {
property
var
_flightVideo
:
null
property
var
_savedZoomLevel
:
0
property
real
_pipSize
:
ScreenTools
.
isAndroid
?
ScreenTools
.
defaultFontPixelSize
*
(
8
)
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
FlightDisplayViewController
{
id
:
_controller
}
MissionController
{
...
...
@@ -126,8 +128,8 @@ Item {
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.left
:
parent
.
left
anchors.bottom
:
parent
.
bottom
height
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
width
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
*
(
16
/
9
)
height
:
_pipSize
width
:
_pipSize
*
(
16
/
9
)
color
:
"
#000010
"
border.width
:
4
radius
:
4
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
b051e8b8
...
...
@@ -87,7 +87,6 @@ Item {
altitude
:
_altitudeWGS84
groundSpeed
:
_groundSpeed
airSpeed
:
_airSpeed
climbRate
:
_climbRate
isSatellite
:
_mainIsMap
?
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
:
true
z
:
QGroundControl
.
zOrderWidgets
}
...
...
@@ -97,7 +96,7 @@ Item {
id
:
toolColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.left
:
parent
.
left
anchors.
verticalCenter
:
parent
.
verticalCenter
anchors.
top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelHeight
//-- Map Center Control
...
...
src/FlightMap/Widgets/QGCInstrumentWidget.qml
View file @
b051e8b8
...
...
@@ -42,7 +42,6 @@ Item {
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
...
...
@@ -78,24 +77,21 @@ Item {
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
"
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
1.25
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
altitude
.
toFixed
(
1
)
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
1.25
font.weight
:
Font
.
DemiBold
width
:
parent
.
width
*
0.549
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
"
Altitude
"
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
width
:
parent
.
width
height
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
altitude
<
10000
?
altitude
.
toFixed
(
1
)
:
altitude
.
toFixed
(
0
)
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
2.5
font.weight
:
Font
.
DemiBold
width
:
parent
.
width
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
//-- Ground Speed
Rectangle
{
...
...
@@ -103,25 +99,25 @@ Item {
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
QGCLabel
{
text
:
"
GS
"
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
groundSpeed
.
toFixed
(
1
)
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
font.weight
:
Font
.
DemiBold
width
:
parent
.
width
*
0.549
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
"
Ground Speed
"
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
width
:
parent
.
width
height
:
ScreenTools
.
defaultFontPixelHeight
*
0.75
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
visible
:
airSpeed
<=
0
}
QGCLabel
{
text
:
groundSpeed
.
toFixed
(
1
)
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
1.25
font.weight
:
Font
.
DemiBold
width
:
parent
.
width
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
visible
:
airSpeed
<=
0
}
//-- Air Speed
Rectangle
{
...
...
@@ -131,51 +127,23 @@ Item {
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
airSpeed
>
0
}
Row
{
width
:
root
.
size
*
0.8
anchors.horizontalCenter
:
parent
.
horizontalCenter
QGCLabel
{
text
:
"
Air Speed
"
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
width
:
parent
.
width
height
:
ScreenTools
.
defaultFontPixelHeight
*
0.75
color
:
isSatellite
?
"
black
"
:
"
white
"
visible
:
airSpeed
>
0
QGCLabel
{
text
:
"
AS
"
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
airSpeed
.
toFixed
(
1
)
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
font.weight
:
Font
.
DemiBold
width
:
parent
.
width
*
0.549
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
//-- 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
"
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
width
:
parent
.
width
*
0.45
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
climbRate
.
toFixed
(
1
)
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
0.75
font.weight
:
Font
.
DemiBold
width
:
parent
.
width
*
0.549
color
:
isSatellite
?
"
black
"
:
"
white
"
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
QGCLabel
{
text
:
airSpeed
.
toFixed
(
1
)
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
*
1.25
font.weight
:
Font
.
DemiBold
width
:
parent
.
width
color
:
isSatellite
?
"
black
"
:
"
white
"
visible
:
airSpeed
>
0
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
//-- Compass
Rectangle
{
...
...
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