X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2FFGRotation.h;h=d072bda1e1a46c677f3b081da1896b9e40cd9820;hb=74fbaa8f5e085d1c7a70e9ecd9e0494b75b5908c;hp=26e1d372ba0454dc5d342d9bac599e00be8ef742;hpb=1bf3001749ee560d3da6dafe556418f3f53348a3;p=flightgear.git diff --git a/src/FDM/JSBSim/FGRotation.h b/src/FDM/JSBSim/FGRotation.h index 26e1d372b..d072bda1e 100644 --- a/src/FDM/JSBSim/FGRotation.h +++ b/src/FDM/JSBSim/FGRotation.h @@ -58,7 +58,7 @@ INCLUDES #ifdef FGFS # include -# ifdef SG_HAVE_STD_INCLUDES +# ifdef FG_HAVE_STD_INCLUDES # include # else # include @@ -69,13 +69,13 @@ INCLUDES #ifndef M_PI # include -# define M_PI SG_PI +# define M_PI FG_PI #endif #include "FGModel.h" #include "FGMatrix.h" -#define ID_ROTATION "$Header$" +#define ID_ROTATION "$Id$" /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLASS DECLARATION @@ -83,24 +83,9 @@ CLASS DECLARATION class FGRotation : public FGModel { - FGColumnVector vPQR; - FGColumnVector vPQRdot; - FGColumnVector vMoments; - FGColumnVector vEuler; - FGColumnVector vEulerRates; - - float cTht,sTht; - float cPhi,sPhi; - float cPsi,sPsi; - - float Ixx, Iyy, Izz, Ixz; - float dt; - - void GetState(void); - public: FGRotation(FGFDMExec*); - ~FGRotation(void); + ~FGRotation(); bool Run(void); @@ -123,9 +108,25 @@ public: inline float GetSintht(void) {return sTht;} inline float GetSinpsi(void) {return sPsi;} +private: + FGColumnVector vPQR; + FGColumnVector vPQRdot; + FGColumnVector vMoments; + FGColumnVector vEuler; + FGColumnVector vEulerRates; + + float cTht,sTht; + float cPhi,sPhi; + float cPsi,sPsi; + + float Ixx, Iyy, Izz, Ixz; + float dt; + void GetState(void); + void Debug(void); }; //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #endif +