]> git.mxchange.org Git - flightgear.git/commitdiff
We don't handle propellers turning backwards. This got clamped
authorandy <andy>
Thu, 23 May 2002 19:47:19 +0000 (19:47 +0000)
committerandy <andy>
Thu, 23 May 2002 19:47:19 +0000 (19:47 +0000)
implicitly in PropEngine by disallowing negative torques, but that was
removed at some point.  We really need the explosion protection here
at the source.

src/FDM/YASim/Propeller.cpp

index ee5a9e0ee36dc243f9d42433c833a230b4c874d6..59e115b6fa9c0a7b28780375c73fb3a7c214785d 100644 (file)
@@ -53,6 +53,9 @@ void Propeller::calc(float density, float v, float omega,
     // calculate V (propeller "speed")
     if(v < 0) v = 0;
 
+    // The model doesn't work for propellers turning backwards.
+    if(omega < 0.001) omega = 0.001;
+
     float J = v/omega;
     float lambda = J/_j0;