2001-12-01 06:22:24 +00:00
|
|
|
#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; }
|
2001-12-01 06:22:24 +00:00
|
|
|
|
|
|
|
void setDryThrust(float thrust);
|
2001-12-06 18:13:24 +00:00
|
|
|
void setReheatThrust(float thrust);
|
2001-12-01 06:22:24 +00:00
|
|
|
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();
|
2001-12-01 06:22:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
float _thrust;
|
2001-12-06 18:13:24 +00:00
|
|
|
float _abThrust;
|
2001-12-01 06:22:24 +00:00
|
|
|
float _rho0;
|
|
|
|
float _reheat;
|
|
|
|
};
|
|
|
|
|
|
|
|
}; // namespace yasim
|
|
|
|
#endif // _JET_HPP
|