X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2FFGAuxiliary.h;h=a76976978234a1165b6143c38783d534d56dbfa5;hb=95440173caef3ce92ee7308fd58a24dabe4c5f8a;hp=23ef0d7f70a8eb9ca3e928c387c65b4c614fcf45;hpb=6bc2f595728571329c094a5a7904e920f325f940;p=flightgear.git diff --git a/src/FDM/JSBSim/FGAuxiliary.h b/src/FDM/JSBSim/FGAuxiliary.h index 23ef0d7f7..a76976978 100644 --- a/src/FDM/JSBSim/FGAuxiliary.h +++ b/src/FDM/JSBSim/FGAuxiliary.h @@ -54,9 +54,7 @@ DEFINITIONS FORWARD DECLARATIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ -/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs] -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ +namespace JSBSim { /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLASS DOCUMENTATION @@ -65,7 +63,6 @@ CLASS DOCUMENTATION /** Encapsulates various uncategorized scheduled functions. @author Tony Peden, Jon Berndt @version $Id$ - @see - */ /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -76,7 +73,7 @@ class FGAuxiliary : public FGModel { public: /** Constructor @param Executive a pointer to the parent executive object */ - FGAuxiliary(FGFDMExec*); + FGAuxiliary(FGFDMExec* Executive); /// Destructor ~FGAuxiliary(); @@ -85,43 +82,53 @@ public: bool Run(void); // Use FGInitialCondition to set these speeds - inline float GetVcalibratedFPS(void) { return vcas; } - inline float GetVcalibratedKTS(void) { return vcas*fpstokts; } - inline float GetVequivalentFPS(void) { return veas; } - inline float GetVequivalentKTS(void) { return veas*fpstokts; } + inline double GetVcalibratedFPS(void) const { return vcas; } + inline double GetVcalibratedKTS(void) const { return vcas*fpstokts; } + inline double GetVequivalentFPS(void) const { return veas; } + inline double GetVequivalentKTS(void) const { return veas*fpstokts; } + inline double GetMachU(void) const { return machU; } + + inline double GetTotalTemperature(void) const { return tat; } + inline double GetTAT_C(void) const { return tatc; } + + // total pressure above is freestream total pressure for subsonic only + // for supersonic it is the 1D total pressure behind a normal shock + inline double GetTotalPressure(void) const { return pt; } inline FGColumnVector3& GetPilotAccel(void) { return vPilotAccel; } - inline float GetPilotAccel(int idx) { return vPilotAccel(idx); } - FGColumnVector3 GetNpilot(void); - float GetNpilot(int idx); + inline double GetPilotAccel(int idx) const { return vPilotAccel(idx); } + FGColumnVector3 GetNpilot(void) const { return vPilotAccelN; } + double GetNpilot(int idx) const { return vPilotAccelN(idx); } - inline float GetEarthPositionAngle(void) { return earthPosAngle; } + inline double GetEarthPositionAngle(void) const { return earthPosAngle; } - float GetHeadWind(void); - float GetCrossWind(void); - + double GetHeadWind(void); + double GetCrossWind(void); + + void bind(void); + void unbind(void); + private: - float vcas; - float veas; - float mach; - float qbar,rhosl,rho,p,psl,pt; + double vcas; + double veas; + double mach; + double machU; + double qbar,rhosl,rho,p,psl,pt,tat,sat,tatc; // Don't add a getter for pt! - // pt above is freestream total pressure for subsonic only - // for supersonic it is the 1D total pressure behind a normal shock - // if a general freestream total is needed, e-mail Tony Peden - // (apeden@earthlink.net) or you can add it your self using the - // isentropic flow equations FGColumnVector3 vPilotAccel; + FGColumnVector3 vPilotAccelN; FGColumnVector3 vToEyePt; - float earthPosAngle; + double earthPosAngle; void GetState(void); - void Debug(void); + void Debug(int from); }; +} // namespace JSBSim + //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #endif