Include gravity in pilot accel calc when Vt < 1
This commit is contained in:
parent
eb05a298e9
commit
09cb9b750c
1 changed files with 13 additions and 9 deletions
|
@ -155,17 +155,21 @@ bool FGAuxiliary::Run()
|
||||||
|
|
||||||
vPilotAccel.InitMatrix();
|
vPilotAccel.InitMatrix();
|
||||||
if ( Translation->GetVt() > 1 ) {
|
if ( Translation->GetVt() > 1 ) {
|
||||||
vToEyePt = Aircraft->GetXYZep() - MassBalance->GetXYZcg();
|
vPilotAccel = Aerodynamics->GetForces()
|
||||||
vToEyePt *= inchtoft;
|
|
||||||
vPilotAccel = Aerodynamics->GetForces()
|
|
||||||
+ Propulsion->GetForces()
|
+ Propulsion->GetForces()
|
||||||
+ GroundReactions->GetForces();
|
+ GroundReactions->GetForces();
|
||||||
vPilotAccel /= MassBalance->GetMass();
|
vPilotAccel /= MassBalance->GetMass();
|
||||||
vPilotAccel += Rotation->GetPQRdot() * vToEyePt;
|
vToEyePt = Aircraft->GetXYZep() - MassBalance->GetXYZcg();
|
||||||
vPilotAccel += Rotation->GetPQR() * (Rotation->GetPQR() * vToEyePt);
|
vToEyePt *= inchtoft;
|
||||||
//vPilotAccel(2)*=-1;
|
vPilotAccel += Rotation->GetPQRdot() * vToEyePt;
|
||||||
vPilotAccelN = vPilotAccel/Inertial->gravity();
|
vPilotAccel += Rotation->GetPQR() * (Rotation->GetPQR() * vToEyePt);
|
||||||
}
|
} else {
|
||||||
|
vPilotAccel = -1*( State->GetTl2b() * Inertial->GetGravity() );
|
||||||
|
}
|
||||||
|
|
||||||
|
vPilotAccelN = vPilotAccel/Inertial->gravity();
|
||||||
|
|
||||||
|
|
||||||
earthPosAngle += State->Getdt()*Inertial->omega();
|
earthPosAngle += State->Getdt()*Inertial->omega();
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue