]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Propeller.hpp
Add support for a turbo prop condition lever.
[flightgear.git] / src / FDM / YASim / Propeller.hpp
index eed76450c30ab3a24218bc7850e8cb4fbfef27b6..5a5905e2fc26382b7e77198a0b7f5afc75486b9e 100644 (file)
@@ -14,21 +14,34 @@ public:
     // numbers for RPM and power (with air speed and density being
     // zero and sea level).  RPM values are in radians per second, of
     // course.
-    Propeller(float radius, float v, float omega, float rho, float power,
-              float omega0, float power0);
+    Propeller(float radius, float v, float omega, float rho, float power);
+
+    void setTakeoff(float omega0, float power0);
+
+    void modPitch(float mod);
+
+    void setPropPitch(float proppitch);
+
+    void setPropFeather(int state);
+
+    void setManualPitch();
 
     void calc(float density, float v, float omega,
              float* thrustOut, float* torqueOut);
 
 private:
     float _r;           // characteristic radius
-    float _J0;          // zero-thrust advance ratio
-    float _lambdaS;     // "propeller stall" normalized advance ratio
-    float _F0;          // thrust coefficient
+    float _j0;          // zero-thrust advance ratio
+    float _baseJ0;      //  ... uncorrected for prop advance
+    float _f0;          // thrust coefficient
     float _etaC;        // Peak efficiency
     float _lambdaPeak;  // constant, ~0.759835;
     float _beta;        // constant, ~1.48058;
-    float _takeoffCoef; // correction to get the zero-speed torque right
+    float _tc0;         // thrust "coefficient" at takeoff
+    bool  _matchTakeoff; // Does _tc0 mean anything?
+    bool  _manual;      // manual pitch mode
+    float _proppitch;   // prop pitch control setting (0 ~ 1.0)
+    float _propfeather; // prop feather control setting (0 = norm, 1 = feather)
 };
 
 }; // namespace yasim