From: david Date: Fri, 12 Apr 2002 17:24:17 +0000 (+0000) Subject: JSBSim change: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa5a7071281c1a892f165ef093bf8a3f27ddc38c;p=flightgear.git JSBSim change: Set an arbitrary cutoff (5RPM) where friction causes the propeller to stop spinning. --- 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