]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/TurbineEngine.hpp
latest updates from JSBSim
[flightgear.git] / src / FDM / YASim / TurbineEngine.hpp
index 09c0233d22dd897eaebb9015e775f11b9a05d867..ab496ebde0ed9e7f12d00dc404f5e89314af60a9 100644 (file)
@@ -10,13 +10,20 @@ public:
     virtual TurbineEngine* isTurbineEngine() { return this; }
 
     TurbineEngine(float power, float omega, float alt, float flatRating);
-    void setN2Range(float min, float max) { _n2Min = min; _n2Max = max; }
+    void setN2Range(float low_idle, float high_idle, float max) {
+        _n2LowIdle = low_idle;
+        _n2HighIdle = high_idle;
+        _n2Max = max;
+    }
     void setFuelConsumption(float bsfc) { _bsfc = bsfc; }
 
     virtual void calc(float pressure, float temp, float speed);
     virtual void stabilize();
     virtual void integrate(float dt);
 
+    void setCondLever( float lever ) {
+        _cond_lever = lever;
+    }
     virtual float getTorque() { return _torque; }
     virtual float getFuelFlow() { return _fuelFlow; }
     float getN2() { return _n2; }
@@ -24,13 +31,17 @@ public:
 private:
     void setOutputFromN2();
 
+    float _cond_lever;
+
     float _maxTorque;
     float _flatRating;
     float _rho0;
     float _bsfc; // SI units! kg/s per watt
-    float _n2Min;
+    float _n2LowIdle;
+    float _n2HighIdle;
     float _n2Max;
 
+    float _n2Min;
     float _n2Target;
     float _torqueTarget;
     float _fuelFlowTarget;