X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim.hxx;h=bb6cdccbb9821770bb6c0a9c65660dffda3d5bfb;hb=bb785797b9dd171f21c2577e0ba1a9c84e107583;hp=b6f50b435e35bcb616401f5eb1f2a3f0e6817b3e;hpb=74fbaa8f5e085d1c7a70e9ecd9e0494b75b5908c;p=flightgear.git diff --git a/src/FDM/JSBSim.hxx b/src/FDM/JSBSim.hxx index b6f50b435..bb6cdccbb 100644 --- a/src/FDM/JSBSim.hxx +++ b/src/FDM/JSBSim.hxx @@ -37,8 +37,6 @@ SENTRY INCLUDES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ -#include -#include #undef MAX_ENGINES #include @@ -52,6 +50,25 @@ DEFINITIONS FORWARD DECLARATIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ +#include + +#include + +class FGState; +class FGAtmosphere; +class FGFCS; +class FGPropulsion; +class FGMassBalance; +class FGAerodynamics; +class FGInertial; +class FGAircraft; +class FGTranslation; +class FGRotation; +class FGPosition; +class FGAuxiliary; +class FGOutput; +class FGInitialCondition; + /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ @@ -194,17 +211,36 @@ public: @param multiloop number of times to loop through the FDM @return true if successful */ bool update( int multiloop ); + bool ToggleDataLogging(bool state); + bool ToggleDataLogging(void); private: FGFDMExec *fdmex; FGInitialCondition *fgic; bool needTrim; + FGState* State; + FGAtmosphere* Atmosphere; + FGFCS* FCS; + FGPropulsion* Propulsion; + FGMassBalance* MassBalance; + FGAircraft* Aircraft; + FGTranslation* Translation; + FGRotation* Rotation; + FGPosition* Position; + FGAuxiliary* Auxiliary; + FGAerodynamics* Aerodynamics; + int runcount; float trim_elev; float trim_throttle; - SGValue *trimmed; + SGPropertyNode *startup_trim; + SGPropertyNode *trimmed; + SGPropertyNode *pitch_trim; + SGPropertyNode *throttle_trim; + SGPropertyNode *aileron_trim; + SGPropertyNode *rudder_trim; void snap_shot(void); };