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);
// 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();
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:
float stallFunc(float* v);
- float controlDrag();
+ float flapLift(float alpha);
+ float controlDrag(float lift, float drag);
float _chord; // X-axis size
float _c0; // total force coefficient
float _slatDrag;
float _flapLift;
float _flapDrag;
+ float _flapEffectiveness;
float _spoilerLift;
float _spoilerDrag;
float _flapPos;
float _spoilerPos;
float _incidence;
+ float _twist;
+ float _inducedDrag;
};
}; // namespace yasim