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:
parent
7294999f35
commit
adb926eefc
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue