]> git.mxchange.org Git - flightgear.git/commitdiff
Forgot the gear ratio handling in stabilize() method, so the solver
authorandy <andy>
Sun, 25 Jan 2004 18:57:11 +0000 (18:57 +0000)
committerandy <andy>
Sun, 25 Jan 2004 18:57:11 +0000 (18:57 +0000)
got wrong values.

src/FDM/YASim/PropEngine.cpp

index 4c06a4d8a700b7aeaf790f7395811945c59e79e5..f5f90236a1c28fc0d58bce2b39d7b77b07dbb620 100644 (file)
@@ -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;