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
557a9246
Commit
557a9246
authored
Jan 10, 2016
by
Gus Grubba
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2570 from dogmaphobic/gpsFixes
GPS Indicator fixes.
parents
6006dc32
5e051cb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
MainToolBar.qml
src/ui/toolbar/MainToolBar.qml
+14
-8
MainToolBarIndicators.qml
src/ui/toolbar/MainToolBarIndicators.qml
+3
-3
No files found.
src/ui/toolbar/MainToolBar.qml
View file @
557a9246
...
...
@@ -190,16 +190,22 @@ Rectangle {
function
getGpsLockStatus
()
{
if
(
activeVehicle
)
{
if
(
activeVehicle
.
satelliteLock
==
0
)
{
return
"
No Satellite Link
"
}
if
(
activeVehicle
.
satelliteLock
==
1
)
{
return
"
No GPS Lock
"
if
(
activeVehicle
.
satelliteLock
<
2
)
{
return
"
No Satellite Lock
"
}
if
(
activeVehicle
.
satelliteLock
==
2
)
{
return
"
2D Lock
"
}
return
"
3D Lock
"
if
(
activeVehicle
.
satelliteLock
==
3
)
{
return
"
3D Lock
"
}
if
(
activeVehicle
.
satelliteLock
==
4
)
{
return
"
3D Lock with Differential
"
}
if
(
activeVehicle
.
satelliteLock
==
5
)
{
return
"
3D Lock with Relative Positioning
"
}
return
"
Unkown Lock Type (
"
+
activeVehicle
.
satelliteLock
+
"
)
"
}
return
"
N/A
"
}
...
...
@@ -226,14 +232,14 @@ Rectangle {
anchors.centerIn
:
parent
QGCLabel
{
id
:
gpsLabel
text
:
(
activeVehicle
&&
(
activeVehicle
.
satelliteCount
>
0
)
)
?
"
GPS Status
"
:
"
GPS Data Unavailable
"
text
:
(
activeVehicle
&&
activeVehicle
.
satelliteCount
>=
0
)
?
"
GPS Status
"
:
"
GPS Data Unavailable
"
font.weight
:
Font
.
DemiBold
color
:
colorWhite
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
GridLayout
{
id
:
gpsGrid
visible
:
(
activeVehicle
&&
(
activeVehicle
.
satelliteCount
>
0
)
)
visible
:
(
activeVehicle
&&
activeVehicle
.
satelliteCount
>=
0
)
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
columnSpacing
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
src/ui/toolbar/MainToolBarIndicators.qml
View file @
557a9246
...
...
@@ -176,7 +176,7 @@ Row {
smooth
:
true
width
:
mainWindow
.
tbCellHeight
*
0.65
height
:
mainWindow
.
tbCellHeight
*
0.5
opacity
:
activeVehicle
?
(
activeVehicle
.
satelliteCount
<
1
?
0.5
:
1
)
:
0.5
opacity
:
(
activeVehicle
&&
activeVehicle
.
satelliteCount
>=
0
)
?
1
:
0.5
anchors.verticalCenter
:
parent
.
verticalCenter
}
SignalStrength
{
...
...
@@ -186,10 +186,10 @@ Row {
}
}
QGCLabel
{
text
:
activeVehicle
?
activeVehicle
.
satelliteCount
:
0
text
:
(
activeVehicle
&&
activeVehicle
.
satelliteCount
>=
0
)
?
activeVehicle
.
satelliteCount
:
""
visible
:
(
activeVehicle
&&
activeVehicle
.
satelliteCount
>=
0
)
font.pixelSize
:
tbFontSmall
color
:
colorWhite
opacity
:
activeVehicle
?
(
activeVehicle
.
satelliteCount
<
1
?
0.5
:
1
)
:
0.5
anchors.top
:
parent
.
top
anchors.leftMargin
:
gpsIcon
.
width
anchors.left
:
parent
.
left
...
...
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