1 #ifndef _PROPENGINE_HPP
2 #define _PROPENGINE_HPP
4 #include "Thruster.hpp"
11 class PropEngine : public Thruster {
13 PropEngine(Propeller* prop, PistonEngine* eng, float moment);
14 virtual ~PropEngine();
16 void setAdvance(float advance);
17 void setVariableProp(float min, float max);
19 virtual PropEngine* getPropEngine() { return this; }
20 virtual PistonEngine* getPistonEngine() { return _eng; }
21 virtual Propeller* getPropeller() { return _prop; }
24 virtual void getThrust(float* out);
25 virtual void getTorque(float* out);
26 virtual void getGyro(float* out);
27 virtual float getFuelFlow();
29 // Runtime instructions
30 virtual void integrate(float dt);
31 virtual void stabilize();
41 float _advance; // control input, 0-1
45 float _omega; // RPM, in radians/sec
53 #endif // _PROPENGINE_HPP