From fa5a7071281c1a892f165ef093bf8a3f27ddc38c Mon Sep 17 00:00:00 2001 From: david Date: Fri, 12 Apr 2002 17:24:17 +0000 Subject: [PATCH] JSBSim change: Set an arbitrary cutoff (5RPM) where friction causes the propeller to stop spinning. --- src/FDM/JSBSim/FGPropeller.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/FDM/JSBSim/FGPropeller.cpp b/src/FDM/JSBSim/FGPropeller.cpp index 1d9a9e0af..1bd9118ef 100644 --- a/src/FDM/JSBSim/FGPropeller.cpp +++ b/src/FDM/JSBSim/FGPropeller.cpp @@ -177,6 +177,12 @@ double FGPropeller::Calculate(double PowerAvailable) ExcessTorque = PowerAvailable / omega; RPM = (RPS + ((ExcessTorque / Ixx) / (2.0 * M_PI)) * deltaT) * 60.0; + // The friction from the engine should + // stop it somewhere; I chose an + // arbitrary point. + if (RPM < 5.0) + RPM = 0; + vMn = fdmex->GetRotation()->GetPQR()*vH + vTorque*Sense; return Thrust; // return thrust in pounds -- 2.39.5