From e3836b26b4d90f9b4c2a81fb6a63d90bdf56e971 Mon Sep 17 00:00:00 2001 From: jgoppert Date: Wed, 26 Dec 2012 16:24:53 -0800 Subject: [PATCH] Fixed accel conversion for flightgear. --- src/comm/QGCFlightGearLink.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comm/QGCFlightGearLink.cc b/src/comm/QGCFlightGearLink.cc index 3b7a962d1..1f4dd5759 100644 --- a/src/comm/QGCFlightGearLink.cc +++ b/src/comm/QGCFlightGearLink.cc @@ -249,9 +249,9 @@ void QGCFlightGearLink::readBytes() pitchspeed = values.at(8).toDouble(); yawspeed = values.at(9).toDouble(); - xacc = values.at(10).toDouble(); - yacc = values.at(11).toDouble(); - zacc = values.at(12).toDouble(); + xacc = values.at(10).toDouble()*1e3/9.8; // convert to mg's + yacc = values.at(11).toDouble()*1e3/9.8; + zacc = values.at(12).toDouble()*1e3/9.8; vx = values.at(13).toDouble() * 1e2; vy = values.at(14).toDouble() * 1e2; -- 2.22.0