]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Rotorpart.hpp
latest updates from JSBSim
[flightgear.git] / src / FDM / YASim / Rotorpart.hpp
index b722ab4b817db9b6d1bca7c495bcc04ccaaaaf4e..8d68fa98fbe4969f339096d7cd86af7bb66fa2fc 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _ROTORPART_HPP
 #define _ROTORPART_HPP
-#include <sstream>
-#include <iostream>
+#include <iosfwd>
+
 namespace yasim {
     class Rotor;
     class Rotorpart
@@ -60,6 +60,7 @@ namespace yasim {
         void setTorque(float torque_max_force,float torque_no_force);
         void setOmega(float value);
         void setOmegaN(float value);
+        void setPhi(float value);
         void setDdtOmega(float value);
         float getIncidence();
         float getPhi();
@@ -68,10 +69,13 @@ namespace yasim {
         void setAlpha0(float f);
         void setAlpha0factor(float f);
         void setLen(float value);
-        void setParameter(char *parametername, float value);
+        void setParameter(const char *parametername, float value);
         void setRotor(Rotor *rotor);
         void setTorqueOfInertia(float toi);
         void writeInfo(std::ostringstream &buffer);
+        void setSharedFlapHinge(bool s);
+        void setDirection(float direction);
+        float getAlphaAlt() {return _alphaalt;}
 
     private:
         void strncpy(char *dest,const char *src,int maxlen);
@@ -88,10 +92,6 @@ namespace yasim {
         float _directionofcentripetalforce[3];
         float _directionofrotorpart[3];
         float _centripetalforce;
-        float _maxpitch;
-        float _minpitch;
-        float _maxcyclic;
-        float _mincyclic;
         float _cyclic;
         float _collective;
         float _delta3;
@@ -119,6 +119,9 @@ namespace yasim {
         char _alphaoutputbuf[2][256];
         int _alpha2type;
         float _rotor_correction_factor;
+        bool _shared_flap_hinge;
+        float _direction;
+        float _balance;
     };
     std::ostream &  operator<<(std::ostream & out, const Rotorpart& rp);
 }; // namespace yasim