]> git.mxchange.org Git - flightgear.git/blob - src/FDM/YASim/Jet.hpp
Updated to YASim-0.1.1
[flightgear.git] / src / FDM / YASim / Jet.hpp
1 #ifndef _JET_HPP
2 #define _JET_HPP
3
4 #include "Thruster.hpp"
5
6 namespace yasim {
7
8 // Incredibly dumb placeholder for a Jet implementation.  But it does
9 // what's important, which is provide thrust.
10 class Jet : public Thruster {
11 public:
12     Jet();
13
14     virtual Jet* getJet() { return this; }
15
16     void setDryThrust(float thrust);
17     void setReheatThrust(float thrust);
18     void setReheat(float reheat);
19
20     virtual void getThrust(float* out);
21     virtual void getTorque(float* out);
22     virtual void getGyro(float* out);
23     virtual float getFuelFlow();
24     virtual void integrate(float dt);
25     virtual void stabilize();
26
27 private:
28     float _thrust;
29     float _abThrust;
30     float _rho0;
31     float _reheat;
32 };
33
34 }; // namespace yasim
35 #endif // _JET_HPP