From: bcoconni Date: Sun, 9 Aug 2015 17:59:29 +0000 (+0200) Subject: Fixed the accelerometer that now reports correctly 0g in orbit and 1g when steady... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=adb926eefc5616142b575cdd08db5106d2b23de5;p=flightgear.git Fixed the accelerometer that now reports correctly 0g in orbit and 1g when steady on ground. Bug report by Thorsten Renk. --- diff --git a/src/FDM/JSBSim/models/flight_control/FGAccelerometer.cpp b/src/FDM/JSBSim/models/flight_control/FGAccelerometer.cpp index 11f39835f..2b9b4c5b4 100644 --- a/src/FDM/JSBSim/models/flight_control/FGAccelerometer.cpp +++ b/src/FDM/JSBSim/models/flight_control/FGAccelerometer.cpp @@ -92,9 +92,8 @@ bool FGAccelerometer::Run(void ) //aircraft forces vAccel = (Accelerations->GetBodyAccel() - + Propagate->GetTi2b() * Accelerations->GetGravAccel() - + Accelerations->GetPQRdot() * vRadius - + Propagate->GetPQR() * (Propagate->GetPQR() * vRadius)); + + Accelerations->GetPQRidot() * vRadius + + Propagate->GetPQRi() * (Propagate->GetPQRi() * vRadius)); // transform to the specified orientation vAccel = mT * vAccel;