Commit e3836b26 authored by jgoppert's avatar jgoppert

Fixed accel conversion for flightgear.

parent 4f51bf9a
...@@ -249,9 +249,9 @@ void QGCFlightGearLink::readBytes() ...@@ -249,9 +249,9 @@ void QGCFlightGearLink::readBytes()
pitchspeed = values.at(8).toDouble(); pitchspeed = values.at(8).toDouble();
yawspeed = values.at(9).toDouble(); yawspeed = values.at(9).toDouble();
xacc = values.at(10).toDouble(); xacc = values.at(10).toDouble()*1e3/9.8; // convert to mg's
yacc = values.at(11).toDouble(); yacc = values.at(11).toDouble()*1e3/9.8;
zacc = values.at(12).toDouble(); zacc = values.at(12).toDouble()*1e3/9.8;
vx = values.at(13).toDouble() * 1e2; vx = values.at(13).toDouble() * 1e2;
vy = values.at(14).toDouble() * 1e2; vy = values.at(14).toDouble() * 1e2;
......
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