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
a4e5948e
Commit
a4e5948e
authored
Jun 19, 2017
by
Don Gagne
Browse files
Fix knots to m/s conversion
parent
03fb65a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/QGCXPlaneLink.cc
View file @
a4e5948e
...
...
@@ -635,9 +635,10 @@ void QGCXPlaneLink::readBytes()
if
(
p
.
index
==
3
)
{
ind_airspeed
=
p
.
f
[
5
]
*
0.44704
f
;
true_airspeed
=
p
.
f
[
6
]
*
0.44704
f
;
groundspeed
=
p
.
f
[
7
]
*
0.44704
;
float
knotsToMetersPerSecond
=
0.514444
f
;
ind_airspeed
=
p
.
f
[
5
]
*
knotsToMetersPerSecond
;
true_airspeed
=
p
.
f
[
6
]
*
knotsToMetersPerSecond
;
groundspeed
=
p
.
f
[
7
]
*
knotsToMetersPerSecond
;
//qDebug() << "SPEEDS:" << "airspeed" << airspeed << "m/s, groundspeed" << groundspeed << "m/s";
}
...
...
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