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
|
//aircraft forces
|
||||||
vAccel = (Accelerations->GetBodyAccel()
|
vAccel = (Accelerations->GetBodyAccel()
|
||||||
+ Propagate->GetTi2b() * Accelerations->GetGravAccel()
|
+ Accelerations->GetPQRidot() * vRadius
|
||||||
+ Accelerations->GetPQRdot() * vRadius
|
+ Propagate->GetPQRi() * (Propagate->GetPQRi() * vRadius));
|
||||||
+ Propagate->GetPQR() * (Propagate->GetPQR() * vRadius));
|
|
||||||
|
|
||||||
// transform to the specified orientation
|
// transform to the specified orientation
|
||||||
vAccel = mT * vAccel;
|
vAccel = mT * vAccel;
|
||||||
|
|
Loading…
Add table
Reference in a new issue