6 // A generic propeller model. See the TeX documentation for
7 // implementation details, this is too hairy to explain in code
12 // Initializes a propeller with the specified "cruise" numbers
13 // for airspeed, RPM, power and air density, and two "takeoff"
14 // numbers for RPM and power (with air speed and density being
15 // zero and sea level). RPM values are in radians per second, of
17 Propeller(float radius, float v, float omega, float rho, float power);
19 void setTakeoff(float omega0, float power0);
21 void modPitch(float mod);
23 void setPropPitch(float proppitch);
25 void setManualPitch();
27 void calc(float density, float v, float omega,
28 float* thrustOut, float* torqueOut);
31 float _r; // characteristic radius
32 float _j0; // zero-thrust advance ratio
33 float _baseJ0; // ... uncorrected for prop advance
34 float _f0; // thrust coefficient
35 float _etaC; // Peak efficiency
36 float _lambdaPeak; // constant, ~0.759835;
37 float _beta; // constant, ~1.48058;
38 float _tc0; // thrust "coefficient" at takeoff
39 bool _matchTakeoff; // Does _tc0 mean anything?
40 bool _manual; // manual pitch mode
41 float _proppitch; // prop pitch control setting (0 ~ 1.0)
45 #endif // _PROPELLER_HPP