]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Propeller.cpp
Add support for a turbo prop condition lever.
[flightgear.git] / src / FDM / YASim / Propeller.cpp
index 661a3842edff1c3d9fdef29a5ae9581295768009..a49f0dad8205b04fb3ceb780b87661d207a63a21 100644 (file)
@@ -24,6 +24,7 @@ Propeller::Propeller(float radius, float v, float omega,
     _matchTakeoff = false;
     _manual = false;
     _proppitch = 0;
+    _propfeather = 0;
 }
 
 void Propeller::setTakeoff(float omega0, float power0)
@@ -55,6 +56,12 @@ void Propeller::setPropPitch(float proppitch)
     _proppitch = Math::clamp(proppitch, 0, 1);
 }
 
+void Propeller::setPropFeather(int state)
+{
+    // 0 = normal, 1 = feathered
+    _propfeather = (state != 0);
+}
+
 void Propeller::calc(float density, float v, float omega,
                     float* thrustOut, float* torqueOut)
 {