Commit a4e5948e authored by Don Gagne's avatar Don Gagne

Fix knots to m/s conversion

parent 03fb65a1
......@@ -635,9 +635,10 @@ void QGCXPlaneLink::readBytes()
if (p.index == 3)
{
ind_airspeed = p.f[5] * 0.44704f;
true_airspeed = p.f[6] * 0.44704f;
groundspeed = p.f[7] * 0.44704;
float knotsToMetersPerSecond = 0.514444f;
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";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment