]> git.mxchange.org Git - flightgear.git/commitdiff
Increase friction at idle, so that the engine idles more slowly.
authordavid <david>
Sun, 7 Mar 2004 01:26:30 +0000 (01:26 +0000)
committerdavid <david>
Sun, 7 Mar 2004 01:26:30 +0000 (01:26 +0000)
The friction factor should be tunable through a runtime parameter;
right now, it is optimized for the PA-28-161.

src/FDM/YASim/PistonEngine.cpp

index edc54025d1e061e45272b9914bdd201c67fe139c..8c28d62f044966b160743978034e6a1099549dfc 100644 (file)
@@ -202,7 +202,7 @@ void PistonEngine::calc(float pressure, float temp, float speed)
     // away as we approach cruise RPMs, though, to prevent interaction
     // with the power computations.  Ugly.
     if(speed > 0 && speed < _omega0)
-       _torque -= 0.05f * (_power0/_omega0) * (1 - speed/_omega0);
+       _torque -= 0.16f * (_power0/_omega0) * (1 - speed/_omega0);
 
     // Now EGT.  This one gets a little goofy.  We can calculate the
     // work done by an isentropically expanding exhaust gas as the