From e8009ed8fa19c6efeb901a6488185d2a563104f4 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 25 Jan 2004 18:57:11 +0000 Subject: [PATCH] Forgot the gear ratio handling in stabilize() method, so the solver got wrong values. --- src/FDM/YASim/PropEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;