]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/PistonEngine.hpp
Bugfix: no automatic runway selection with --parkpos=
[flightgear.git] / src / FDM / YASim / PistonEngine.hpp
index 7ce647acd62eb94f11763a8d8e22e49e84143c97..2431c494785e082730093086747ede56952db482 100644 (file)
@@ -14,6 +14,10 @@ public:
     void setTurboParams(float mul, float maxMP);
     void setDisplacement(float d);
     void setCompression(float c);
+    void setMinThrottle(float m);
+    void setWastegate(float norm) { _wastegate = norm; }
+    void setSupercharger(bool hasSuper) { _hasSuper = hasSuper; }
+    void setTurboLag(float lag) { _turboLag = lag; }
 
     bool isCranking();
     float getMP();
@@ -36,9 +40,15 @@ private:
     float _f0;       // "ideal" fuel flow at P0/omega0
     float _mixCoeff; // fuel flow per omega at full mixture
     float _turbo;    // (or super-)charger pressure multiplier
-    float _maxMP;    // wastegate setting
+    bool _hasSuper;  // true indicates gear-driven (not turbo)
+    float _turboLag; // turbo lag time in seconds
+    float _charge;   // current {turbo|super}charge multiplier
+    float _chargeTarget;  // eventual charge value
+    float _maxMP;    // static maximum pressure
+    float _wastegate;    // wastegate setting, [0:1]
     float _displacement; // piston stroke volume
     float _compression;  // compression ratio (>1)
+    float _minthrottle; // minimum throttle [0:1]
 
     // Runtime state/output:
     float _mp;