Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f1bf5ab7
Commit
f1bf5ab7
authored
Feb 26, 2016
by
Don Gagne
Browse files
Update gps indicator to hdop, new hdop boundaries
parent
2fcdda7f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
f1bf5ab7
...
...
@@ -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 @
f1bf5ab7
...
...
@@ -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 @
f1bf5ab7
...
...
@@ -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
<
1
1
)
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
Supports
Markdown
0%
Try again
or
attach a new 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