]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Rotor.cpp
#798: Betrand Coconnier: Fix setting initial vertical speed with JSBSim
[flightgear.git] / src / FDM / YASim / Rotor.cpp
index 1231cf6b8a126e796b96457c999f3cb944a0c829..79e5fd128ebc975304296913534d06d4b348eb17 100644 (file)
@@ -1543,6 +1543,8 @@ void Rotorgear::calcForces(float* torqueOut)
         }
         total_torque*=-1;
         _ddt_omegarel=0;
+
+#if 0
         float rel_torque_engine=1;
         if (total_torque<=0)
             rel_torque_engine=0;
@@ -1551,6 +1553,7 @@ void Rotorgear::calcForces(float* torqueOut)
                 rel_torque_engine=1/max_torque_of_engine*total_torque;
             else
                 rel_torque_engine=0;
+#endif
 
         //add the rotor brake and the gear fritcion
         float dt=0.1f;