1
0
Fork 0

Latest JSBSim changes from Tony Peden (should help slip/skid ball).

This commit is contained in:
david 2002-02-06 16:52:34 +00:00
parent d01cb2769a
commit 7b01a143a1

View file

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