From b0ee215bed0bdce25907a2411c49619c063f6464 Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Thu, 5 Jul 2018 00:15:43 +0200 Subject: [PATCH] [JSBSim] Tentative fix for the P factor --- src/FDM/JSBSim/models/propulsion/FGPropeller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FDM/JSBSim/models/propulsion/FGPropeller.cpp b/src/FDM/JSBSim/models/propulsion/FGPropeller.cpp index 63c057c34..9f9c7ba8d 100644 --- a/src/FDM/JSBSim/models/propulsion/FGPropeller.cpp +++ b/src/FDM/JSBSim/models/propulsion/FGPropeller.cpp @@ -255,7 +255,7 @@ double FGPropeller::Calculate(double EnginePower) double tangentialVel = localAeroVel.Magnitude(eV, eW); if (tangentialVel > 0.0001) { - double angle = atan2(tangentialVel, localAeroVel(eU)); + double angle = atan2(tangentialVel, localAeroVel(eU) + Vinduced); double factor = Sense * P_Factor * angle / tangentialVel; SetActingLocationY( GetLocationY() + factor * localAeroVel(eW)); SetActingLocationZ( GetLocationZ() + factor * localAeroVel(eV));