From 6afad8ecb9277271b060a7eb68372bae1df1e8fa Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 22 Apr 2013 00:12:19 +0200 Subject: [PATCH] Small code/docs cleanup in XPlane sim link --- src/comm/QGCXPlaneLink.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/comm/QGCXPlaneLink.cc b/src/comm/QGCXPlaneLink.cc index 83f834706..1b7d78073 100644 --- a/src/comm/QGCXPlaneLink.cc +++ b/src/comm/QGCXPlaneLink.cc @@ -473,10 +473,7 @@ void QGCXPlaneLink::readBytes() } if (p.index == 4) { - xacc = p.f[5] * 9.81f; - yacc = p.f[6] * 9.81f; - zacc = -p.f[4] * 9.81f; - + // Do not actually use the XPlane value, but calculate our own Eigen::Vector3f g(0, 0, -9.81f); Eigen::Matrix3f R = euler_to_wRo(yaw, pitch, roll); -- 2.22.0