From: andy Date: Thu, 23 May 2002 19:47:19 +0000 (+0000) Subject: We don't handle propellers turning backwards. This got clamped X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=040c508aa87f6f508cc0ac7c6b3bb0912733d4bf;p=flightgear.git We don't handle propellers turning backwards. This got clamped implicitly in PropEngine by disallowing negative torques, but that was removed at some point. We really need the explosion protection here at the source. --- diff --git a/src/FDM/YASim/Propeller.cpp b/src/FDM/YASim/Propeller.cpp index ee5a9e0ee..59e115b6f 100644 --- a/src/FDM/YASim/Propeller.cpp +++ b/src/FDM/YASim/Propeller.cpp @@ -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;