]> git.mxchange.org Git - flightgear.git/commitdiff
Constant-speed props were seeking to engine speed, not prop speed.
authorandy <andy>
Wed, 26 Jan 2005 18:30:45 +0000 (18:30 +0000)
committerandy <andy>
Wed, 26 Jan 2005 18:30:45 +0000 (18:30 +0000)
src/FDM/YASim/PropEngine.cpp

index c9c590a9b4abb4485d2a55c94d5af7d190a8b915..7930f26cab5f4eecfd079111e5d016aeb528e00f 100644 (file)
@@ -216,7 +216,8 @@ void PropEngine::integrate(float dt)
     // _current_ RPM.  Seek to that.  This is sort of a continuous
     // Newton-Raphson, basically.
     if(_variable) {
-       float targetOmega = _minOmega + _advance*(_maxOmega-_minOmega);
+       float targetPropSpd = _minOmega + _advance*(_maxOmega-_minOmega);
+        float targetOmega = targetPropSpd / _gearRatio; // -> "engine omega"
        float ratio2 = (_omega*_omega)/(targetOmega*targetOmega);
        float targetTorque = engTorque * ratio2;