X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2Fmodels%2FFGAuxiliary.h;h=e3baa49117a8d1e64fe9741302d6b56009a1d370;hb=edd83dd7e8fd7162ae49da6113ad797c68769f20;hp=8d47ce8cc8f6fb595e215cc403177da0f263c53a;hpb=3cb45f498990d75b18e962af8f2b9bf09d09e45c;p=flightgear.git diff --git a/src/FDM/JSBSim/models/FGAuxiliary.h b/src/FDM/JSBSim/models/FGAuxiliary.h index 8d47ce8cc..e3baa4911 100644 --- a/src/FDM/JSBSim/models/FGAuxiliary.h +++ b/src/FDM/JSBSim/models/FGAuxiliary.h @@ -4,7 +4,7 @@ Author: Jon Berndt Date started: 01/26/99 - ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) ------------- + ------------- Copyright (C) 1999 Jon S. Berndt (jon@jsbsim.org) ------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software @@ -40,8 +40,8 @@ INCLUDES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ #include "FGModel.h" -#include -#include +#include "math/FGColumnVector3.h" +#include "math/FGLocation.h" #include "FGPropagate.h" /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -171,24 +171,37 @@ public: double GetMagBeta (void) const { return fabs(beta); } double Getalpha (int unit) const { if (unit == inDegrees) return alpha*radtodeg; - else cerr << "Bad units" << endl; return 0.0;} + else return BadUnits(); } double Getbeta (int unit) const { if (unit == inDegrees) return beta*radtodeg; - else cerr << "Bad units" << endl; return 0.0;} + else return BadUnits(); } double Getadot (int unit) const { if (unit == inDegrees) return adot*radtodeg; - else cerr << "Bad units" << endl; return 0.0;} + else return BadUnits(); } double Getbdot (int unit) const { if (unit == inDegrees) return bdot*radtodeg; - else cerr << "Bad units" << endl; return 0.0;} + else return BadUnits(); } double GetMagBeta (int unit) const { if (unit == inDegrees) return fabs(beta)*radtodeg; - else cerr << "Bad units" << endl; return 0.0;} + else return BadUnits(); } double Getqbar (void) const { return qbar; } double GetqbarUW (void) const { return qbarUW; } double GetqbarUV (void) const { return qbarUV; } double GetReynoldsNumber(void) const { return Re; } + + /** Gets the magnitude of total vehicle velocity including wind effects in feet per second. */ double GetVt (void) const { return Vt; } + + /** Gets the ground speed in feet per second. + The magnitude is the square root of the sum of the squares (RSS) of the + vehicle north and east velocity components. + @return The magnitude of the vehicle velocity in the horizontal plane. */ double GetVground (void) const { return Vground; } + + /** Gets the Mach number. */ double GetMach (void) const { return Mach; } + + /** The mach number calculated using the vehicle X axis velocity. */ double GetMachU (void) const { return MachU; } + + /** The vertical acceleration in g's of the aircraft center of gravity. */ double GetNz (void) const { return Nz; } double GetHOverBCG(void) const { return hoverbcg; } @@ -267,6 +280,7 @@ private: void CalculateRelativePosition(void); void bind(void); + double BadUnits(void) const; void Debug(int from); };