1 #include "Atmosphere.hpp"
8 _rho0 = Atmosphere::getStdDensity(0);
16 return; // no-op for now
19 void Jet::setDryThrust(float thrust)
24 void Jet::setReheatThrust(float thrust)
29 void Jet::setReheat(float reheat)
31 _reheat = Math::clamp(reheat, 0, 1);
34 void Jet::getThrust(float* out)
36 float t = _thrust * _throttle;
37 t += (_abThrust - _thrust) * _reheat;
39 Math::mul3(t, _dir, out);
42 void Jet::getTorque(float* out)
44 out[0] = out[1] = out[2] = 0;
48 void Jet::getGyro(float* out)
50 out[0] = out[1] = out[2] = 0;
54 float Jet::getFuelFlow()
59 void Jet::integrate(float dt)