]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed the accelerometer that now reports correctly 0g in orbit and 1g when steady...
authorbcoconni <bcoconni@users.sourceforge.net>
Sun, 9 Aug 2015 17:59:29 +0000 (19:59 +0200)
committerbcoconni <bcoconni@users.sourceforge.net>
Sun, 9 Aug 2015 17:59:29 +0000 (19:59 +0200)
src/FDM/JSBSim/models/flight_control/FGAccelerometer.cpp

index 11f39835fe8d7ef97447a47f729b7e8a13db4ed4..2b9b4c5b4455b9380494b3db69fd328f9d8cb9a4 100644 (file)
@@ -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;