]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Surface.hpp
FGPUIDialog: fix reading from already free'd memory.
[flightgear.git] / src / FDM / YASim / Surface.hpp
index d3ec43235f06ff7a10eb31af77b57a7d4b2d9088..934eb26de10ee12e0a44c2dbe5b7b4f59680d82d 100644 (file)
@@ -34,6 +34,10 @@ public:
     void setSlat(float pos);
     void setSpoiler(float pos);
 
+    // Modifier for flap lift coefficient, useful for simulating flap blowing etc.
+    void setFlapEffectiveness(float effectiveness);
+       double getFlapEffectiveness();
+
     // local -> Surface coords
     void setOrientation(float* o);
 
@@ -42,6 +46,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 +66,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:
@@ -82,6 +92,7 @@ private:
     float _slatDrag;
     float _flapLift;
     float _flapDrag;
+    float _flapEffectiveness;
     float _spoilerLift;
     float _spoilerDrag;
 
@@ -89,6 +100,8 @@ private:
     float _flapPos;
     float _spoilerPos;
     float _incidence;
+    float _twist;
+    float _inducedDrag;
 };
 
 }; // namespace yasim