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(); 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 {