]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/PropEngine.hpp
latest updates from JSBSim
[flightgear.git] / src / FDM / YASim / PropEngine.hpp
index 92ad8549ec545be06a1be32902bb64d26a0cac6b..7b43254707a5a6dcbfdd4d442a270964bab37a68 100644 (file)
@@ -2,22 +2,26 @@
 #define _PROPENGINE_HPP
 
 #include "Thruster.hpp"
+#include "Engine.hpp"
 
 namespace yasim {
 
 class Propeller;
-class Engine;
 
 class PropEngine : public Thruster {
 public:
     PropEngine(Propeller* prop, Engine* eng, float moment);
     virtual ~PropEngine();
 
+    void setEngine(Engine* eng) { delete _eng; _eng = eng; }
+
     void setMagnetos(int magnetos);
     void setAdvance(float advance);
     void setPropPitch(float proppitch);
     void setVariableProp(float min, float max);
+    void setPropFeather(int state);
     void setGearRatio(float ratio) { _gearRatio = ratio; }
+    void setContraPair(bool contra) { _contra = contra; }
 
     virtual PropEngine* getPropEngine() { return this; }
     virtual Engine* getEngine() { return _eng; }
@@ -45,6 +49,7 @@ private:
     Engine* _eng;
 
     bool _variable;
+    bool _contra; // contra-rotating propeller pair
     int _magnetos;  // 0=off, 1=right, 2=left, 3=both
     float _gearRatio;
     float _advance; // control input, 0-1