X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2FThruster.hpp;h=7d6e0c9cdd65d05e31913021ff4ce06b7ed1aece;hb=c8b8722a14d29e2b4153c39ad4cef0c44a562afd;hp=953c2eb0104964b5f1ced5e754c34a1d478f7232;hpb=ad79ee48976e17e3448ea577993ddacf6943be1c;p=flightgear.git diff --git a/src/FDM/YASim/Thruster.hpp b/src/FDM/YASim/Thruster.hpp index 953c2eb01..7d6e0c9cd 100644 --- a/src/FDM/YASim/Thruster.hpp +++ b/src/FDM/YASim/Thruster.hpp @@ -31,6 +31,7 @@ public: void setThrottle(float throttle); void setMixture(float mixture); void setStarter(bool starter); + void setFuelState(bool hasFuel) { _fuel = hasFuel; } // Dynamic output virtual bool isRunning()=0; @@ -38,11 +39,12 @@ public: virtual void getThrust(float* out)=0; virtual void getTorque(float* out)=0; virtual void getGyro(float* out)=0; - virtual float getFuelFlow()=0; + virtual float getFuelFlow()=0; // in kg/s // Runtime instructions void setWind(float* wind); - void setAir(float pressure, float temp); + void setAir(float pressure, float temp, float density); + virtual void init() {} virtual void integrate(float dt)=0; virtual void stabilize()=0; @@ -52,6 +54,7 @@ protected: float _throttle; float _mixture; bool _starter; // true=engaged, false=disengaged + bool _fuel; // true=available, false=out float _wind[3]; float _pressure;