#ifndef _ROTORPART_HPP
#define _ROTORPART_HPP
-#include <sstream>
-#include <iostream>
+#include <iosfwd>
+
namespace yasim {
class Rotor;
class Rotorpart
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();
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);
float _directionofcentripetalforce[3];
float _directionofrotorpart[3];
float _centripetalforce;
- float _maxpitch;
- float _minpitch;
- float _maxcyclic;
- float _mincyclic;
float _cyclic;
float _collective;
float _delta3;
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