1
0
Fork 0

Include gravity in pilot accel calc when Vt < 1

This commit is contained in:
tony 2002-09-29 14:13:39 +00:00
parent eb05a298e9
commit 09cb9b750c

View file

@ -155,17 +155,21 @@ bool FGAuxiliary::Run()
vPilotAccel.InitMatrix();
if ( Translation->GetVt() > 1 ) {
vToEyePt = Aircraft->GetXYZep() - MassBalance->GetXYZcg();
vToEyePt *= inchtoft;
vPilotAccel = Aerodynamics->GetForces()
vPilotAccel = Aerodynamics->GetForces()
+ Propulsion->GetForces()
+ GroundReactions->GetForces();
vPilotAccel /= MassBalance->GetMass();
vPilotAccel += Rotation->GetPQRdot() * vToEyePt;
vPilotAccel += Rotation->GetPQR() * (Rotation->GetPQR() * vToEyePt);
//vPilotAccel(2)*=-1;
vPilotAccelN = vPilotAccel/Inertial->gravity();
}
vPilotAccel /= MassBalance->GetMass();
vToEyePt = Aircraft->GetXYZep() - MassBalance->GetXYZcg();
vToEyePt *= inchtoft;
vPilotAccel += Rotation->GetPQRdot() * vToEyePt;
vPilotAccel += Rotation->GetPQR() * (Rotation->GetPQR() * vToEyePt);
} else {
vPilotAccel = -1*( State->GetTl2b() * Inertial->GetGravity() );
}
vPilotAccelN = vPilotAccel/Inertial->gravity();
earthPosAngle += State->Getdt()*Inertial->omega();
return false;
} else {