1
0
Fork 0

Fixed the accelerometer that now reports correctly 0g in orbit and 1g when steady on ground. Bug report by Thorsten Renk.

This commit is contained in:
bcoconni 2015-08-09 19:59:29 +02:00
parent 7294999f35
commit adb926eefc

View 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;