From 671bffe9af587d9aac81760ecaefda9ae94178bc Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 26 Jan 2005 18:30:45 +0000 Subject: [PATCH] Constant-speed props were seeking to engine speed, not prop speed. --- src/FDM/YASim/PropEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FDM/YASim/PropEngine.cpp b/src/FDM/YASim/PropEngine.cpp index c9c590a9b..7930f26ca 100644 --- a/src/FDM/YASim/PropEngine.cpp +++ b/src/FDM/YASim/PropEngine.cpp @@ -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; -- 2.39.5