1
0
Fork 0
flightgear/src/FDM/YASim/Jet.hpp

36 lines
751 B
C++
Raw Normal View History

#ifndef _JET_HPP
#define _JET_HPP
#include "Thruster.hpp"
namespace yasim {
// Incredibly dumb placeholder for a Jet implementation. But it does
// what's important, which is provide thrust.
class Jet : public Thruster {
public:
Jet();
2001-12-06 18:13:24 +00:00
virtual Jet* getJet() { return this; }
void setDryThrust(float thrust);
2001-12-06 18:13:24 +00:00
void setReheatThrust(float thrust);
void setReheat(float reheat);
virtual void getThrust(float* out);
virtual void getTorque(float* out);
virtual void getGyro(float* out);
virtual float getFuelFlow();
virtual void integrate(float dt);
2001-12-06 18:13:24 +00:00
virtual void stabilize();
private:
float _thrust;
2001-12-06 18:13:24 +00:00
float _abThrust;
float _rho0;
float _reheat;
};
}; // namespace yasim
#endif // _JET_HPP