1
0
Fork 0

[JSBSim] Tentative fix for the P factor

This commit is contained in:
Bertrand Coconnier 2018-07-05 00:15:43 +02:00
parent ab5342888b
commit b0ee215bed

View file

@ -255,7 +255,7 @@ double FGPropeller::Calculate(double EnginePower)
double tangentialVel = localAeroVel.Magnitude(eV, eW); double tangentialVel = localAeroVel.Magnitude(eV, eW);
if (tangentialVel > 0.0001) { if (tangentialVel > 0.0001) {
double angle = atan2(tangentialVel, localAeroVel(eU)); double angle = atan2(tangentialVel, localAeroVel(eU) + Vinduced);
double factor = Sense * P_Factor * angle / tangentialVel; double factor = Sense * P_Factor * angle / tangentialVel;
SetActingLocationY( GetLocationY() + factor * localAeroVel(eW)); SetActingLocationY( GetLocationY() + factor * localAeroVel(eW));
SetActingLocationZ( GetLocationZ() + factor * localAeroVel(eV)); SetActingLocationZ( GetLocationZ() + factor * localAeroVel(eV));