11 // Position of this surface in local coords
12 void setPosition(float* p);
13 void getPosition(float* out);
16 void setPositionForceAttac(float* p);
17 void getPositionForceAttac(float* out);
19 void setNormal(float* p);
20 void getNormal(float* out);
22 void setMaxPitchForce(float force);
24 void setCollective(float pos);
26 void setCyclic(float pos);
28 void setSpeed(float* p);
29 void setDirectionofZentipetalforce(float* p);
30 void setZentipetalForce(float f);
31 void setMaxpitch(float f);
32 void setMinpitch(float f);
33 void setMaxcyclic(float f);
34 void setMincyclic(float f);
35 void setDelta3(float f);
36 void setDynamic(float f);
37 void setTranslift(float f);
39 void setZentForce(float f);
40 void setRelLenHinge(float f);
41 void setRelamp(float f);
43 float getAlpha(int i);
44 float getrealAlpha(void);
45 char* getAlphaoutput(int i);
46 void setAlphaoutput(char *text,int i);
48 void inititeration(float dt,float *rot);
50 float getWeight(void);
51 void setWeight(float value);
58 void calcForce(float* v, float rho, float* forceOut, float* torqueOut);
59 void setlastnextrp(Rotorpart*lastrp,Rotorpart*nextrp,Rotorpart *oppositerp);
60 void setTorque(float torque_max_force,float torque_no_force);
61 void setOmega(float value);
62 void setOmegaN(float value);
65 void setAlphamin(float f);
66 void setAlphamax(float f);
67 void setAlpha0(float f);
68 void setAlpha0factor(float f);
69 void setLen(float value);
73 void strncpy(char *dest,const char *src,int maxlen);
74 Rotorpart *_lastrp,*_nextrp,*_oppositerp;
77 float _pos[3]; // position in local coords
78 float _posforceattac[3]; // position in local coords
79 float _normal[3]; //direcetion of the rotation axis
80 float _torque_max_force;
81 float _torque_no_force;
83 float _directionofzentipetalforce[3];
84 float _zentipetalforce;
99 float _alphamin,_alphamax,_alpha0,_alpha0factor;
102 float _omega,_omegan;
110 char _alphaoutputbuf[2][256];
115 }; // namespace yasim
116 #endif // _ROTORPART_HPP