From 040c508aa87f6f508cc0ac7c6b3bb0912733d4bf Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 23 May 2002 19:47:19 +0000 Subject: [PATCH] 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. --- src/FDM/YASim/Propeller.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5