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
07aed8ff
Commit
07aed8ff
authored
Feb 26, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2900 from DonLakeFlyer/GPSIndicator
Update gps indicator to hdop, new hdop boundaries
parents
27216843
f1bf5ab7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
Vehicle.cc
src/Vehicle/Vehicle.cc
+4
-0
MainToolBar.qml
src/ui/toolbar/MainToolBar.qml
+3
-3
MainToolBarIndicators.qml
src/ui/toolbar/MainToolBarIndicators.qml
+6
-6
No files found.
src/Vehicle/Vehicle.cc
View file @
07aed8ff
...
...
@@ -1283,6 +1283,10 @@ VehicleGPSFactGroup::VehicleGPSFactGroup(QObject* parent)
_addFact
(
&
_courseOverGroundFact
,
_courseOverGroundFactName
);
_addFact
(
&
_lockFact
,
_lockFactName
);
_addFact
(
&
_countFact
,
_countFactName
);
_hdopFact
.
setRawValue
(
std
::
numeric_limits
<
float
>::
quiet_NaN
());
_vdopFact
.
setRawValue
(
std
::
numeric_limits
<
float
>::
quiet_NaN
());
_courseOverGroundFact
.
setRawValue
(
std
::
numeric_limits
<
float
>::
quiet_NaN
());
}
void
VehicleGPSFactGroup
::
setVehicle
(
Vehicle
*
vehicle
)
...
...
src/ui/toolbar/MainToolBar.qml
View file @
07aed8ff
...
...
@@ -243,7 +243,7 @@ Rectangle {
color
:
colorWhite
}
QGCLabel
{
text
:
activeVehicle
?
(
activeVehicle
.
gps
.
hdop
.
value
<
10000
?
activeVehicle
.
gps
.
hdop
.
valueString
:
"
N/A
"
)
:
"
N/A
"
text
:
activeVehicle
?
activeVehicle
.
gps
.
hdop
.
valueString
:
"
--.--
"
color
:
colorWhite
}
QGCLabel
{
...
...
@@ -251,7 +251,7 @@ Rectangle {
color
:
colorWhite
}
QGCLabel
{
text
:
activeVehicle
?
(
activeVehicle
.
gps
.
vdop
.
value
<
10000
?
activeVehicle
.
gps
.
vdop
.
valueString
:
"
N/A
"
)
:
"
N/A
"
text
:
activeVehicle
?
activeVehicle
.
gps
.
vdop
.
valueString
:
"
--.--
"
color
:
colorWhite
}
QGCLabel
{
...
...
@@ -259,7 +259,7 @@ Rectangle {
color
:
colorWhite
}
QGCLabel
{
text
:
activeVehicle
?
activeVehicle
.
gps
.
courseOverGround
.
valueString
:
"
N/A
"
text
:
activeVehicle
?
activeVehicle
.
gps
.
courseOverGround
.
valueString
:
"
--.--
"
color
:
colorWhite
}
}
...
...
src/ui/toolbar/MainToolBarIndicators.qml
View file @
07aed8ff
...
...
@@ -35,13 +35,13 @@ Row {
spacing
:
tbSpacing
*
2
function
getSatStrength
(
hdop
)
{
if
(
hdop
<
3
)
if
(
hdop
<
=
1.0
)
return
100
if
(
hdop
<
6
)
if
(
hdop
<
=
1.4
)
return
75
if
(
hdop
<
11
)
if
(
hdop
<
=
1.8
)
return
50
if
(
hdop
<
21
)
if
(
hdop
<
=
3.0
)
return
25
return
0
}
...
...
@@ -181,8 +181,8 @@ Row {
}
}
QGCLabel
{
text
:
(
activeVehicle
&&
activeVehicle
.
gps
.
count
.
value
>=
0
)
?
activeVehicle
.
gps
.
count
.
valueString
:
""
visible
:
(
activeVehicle
&&
activeVehicle
.
gps
.
count
.
value
>=
0
)
text
:
activeVehicle
?
activeVehicle
.
gps
.
hdop
.
valueString
:
""
visible
:
activeVehicle
&&
!
isNaN
(
activeVehicle
.
gps
.
hdop
.
value
)
font.pixelSize
:
tbFontSmall
color
:
colorWhite
anchors.top
:
parent
.
top
...
...
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