From: andy Date: Sun, 25 Jan 2004 18:57:11 +0000 (+0000) Subject: Forgot the gear ratio handling in stabilize() method, so the solver X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e8009ed8fa19c6efeb901a6488185d2a563104f4;hp=5af1e589de3f5ad3d7baacc4fc0ac2c211580f01;p=flightgear.git Forgot the gear ratio handling in stabilize() method, so the solver got wrong values. --- diff --git a/src/FDM/YASim/PropEngine.cpp b/src/FDM/YASim/PropEngine.cpp index 4c06a4d8a..f5f90236a 100644 --- a/src/FDM/YASim/PropEngine.cpp +++ b/src/FDM/YASim/PropEngine.cpp @@ -111,7 +111,7 @@ void PropEngine::stabilize() float step = 10; while(true) { float ptau, dummy; - _prop->calc(_rho, speed, _omega, &dummy, &ptau); + _prop->calc(_rho, speed, _omega * _gearRatio, &dummy, &ptau); _eng->calc(_pressure, _temp, _omega); float etau = _eng->getTorque(); float tdiff = etau - ptau;