]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Surface.hpp
First cut at a turbulence model for YASim. It's a
[flightgear.git] / src / FDM / YASim / Surface.hpp
index d3ec43235f06ff7a10eb31af77b57a7d4b2d9088..1b55e3c45813ead38c237e37e7f33634ca773459 100644 (file)
@@ -42,6 +42,9 @@ public:
     // positive is "up" (i.e. "positive AoA")
     void setIncidence(float angle);
 
+    // The offset from base incidence for this surface.
+    void setTwist(float angle);
+
     void setTotalDrag(float c0);
     float getTotalDrag();
 
@@ -59,6 +62,9 @@ public:
     void setStall(int i, float alpha);
     void setStallWidth(int i, float width);
 
+    // Induced drag multiplier
+    void setInducedDrag(float mul) { _inducedDrag = mul; }
+
     void calcForce(float* v, float rho, float* forceOut, float* torqueOut);
 
 private:
@@ -89,6 +95,8 @@ private:
     float _flapPos;
     float _spoilerPos;
     float _incidence;
+    float _twist;
+    float _inducedDrag;
 };
 
 }; // namespace yasim