]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Rotor.hpp
Port over remaining Point3D usage to the more type and unit safe SG* classes.
[flightgear.git] / src / FDM / YASim / Rotor.hpp
index 817367f78fdd649ab12362c39d380b56efee93e9..43ea60e04474b593837f807a9a08e843476c5d36 100644 (file)
@@ -39,6 +39,7 @@ private:
     float _old_tilt_roll;
     float _old_tilt_pitch;
     float _old_tilt_yaw;
+    float _downwash_factor;
 
 public:
     Rotor();
@@ -92,10 +93,11 @@ public:
     void setCyclicail(float lval,float rval);
     void setCyclicele(float lval,float rval);
     void setCollective(float lval);
+    void setRotorBalance(float lval);
     void setAlphaoutput(int i, const char *text);
     void setCcw(int ccw);
     int getCcw() {return _ccw;};
-    void setParameter(char *parametername, float value);
+    void setParameter(const char *parametername, float value);
     void setGlobalGround(double* global_ground, float* global_vel);
     float getTorqueOfInertia();
     int getValueforFGSet(int j,char *b,float *f);
@@ -107,6 +109,7 @@ public:
     void calcLiftFactor(float* v, float rho, State *s);
     void getDownWash(float *pos, float * v_heli, float *downwash);
     int getNumberOfBlades(){return _number_of_blades;}
+    void setDownwashFactor(float value);
 
     // Query the list of Rotorpart objects
     int numRotorparts();
@@ -257,6 +260,8 @@ private:
     float _engine_accel_limit;
     float _total_torque_on_engine;
     Vector _rotors;
+    float _target_rel_rpm;
+    float _max_rel_torque;
 
 public:
     Rotorgear();