]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Thruster.hpp
Don't fiddle with control positions at startup -- we can do that in
[flightgear.git] / src / FDM / YASim / Thruster.hpp
index 953c2eb0104964b5f1ced5e754c34a1d478f7232..7d6e0c9cdd65d05e31913021ff4ce06b7ed1aece 100644 (file)
@@ -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;