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();
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue