43 #include "math/FGColumnVector3.h" 44 #include "math/FGMatrix33.h" 45 #include "math/FGLocation.h" 51 #define ID_AUXILIARY "$Id: FGAuxiliary.h,v 1.31 2015/09/20 20:53:13 bcoconni Exp $" 118 bool InitModel(
void);
127 bool Run(
bool Holding);
159 double GetTAT_C(
void)
const {
return tatc; }
161 double GetPilotAccel(
int idx)
const {
return vPilotAccel(idx); }
162 double GetNpilot(
int idx)
const {
return vPilotAccelN(idx); }
163 double GetAeroPQR(
int axis)
const {
return vAeroPQR(axis); }
164 double GetEulerRates(
int axis)
const {
return vEulerRates(axis); }
166 const FGColumnVector3& GetPilotAccel (
void)
const {
return vPilotAccel; }
169 double GetNcg (
int idx)
const {
return vNcg(idx); }
170 double GetNlf (
void)
const;
172 const FGColumnVector3& GetEulerRates (
void)
const {
return vEulerRates; }
174 const FGLocation& GetLocationVRP(
void)
const {
return vLocationVRP; }
176 double GethVRP(
void)
const {
return vLocationVRP.
GetAltitudeASL(); }
177 double GetAeroUVW (
int idx)
const {
return vAeroUVW(idx); }
178 double Getalpha (
void)
const {
return alpha; }
179 double Getbeta (
void)
const {
return beta; }
180 double Getadot (
void)
const {
return adot; }
181 double Getbdot (
void)
const {
return bdot; }
182 double GetMagBeta (
void)
const {
return fabs(beta); }
184 double Getalpha (
int unit)
const {
if (unit == inDegrees)
return alpha*radtodeg;
185 else return BadUnits(); }
186 double Getbeta (
int unit)
const {
if (unit == inDegrees)
return beta*radtodeg;
187 else return BadUnits(); }
188 double Getadot (
int unit)
const {
if (unit == inDegrees)
return adot*radtodeg;
189 else return BadUnits(); }
190 double Getbdot (
int unit)
const {
if (unit == inDegrees)
return bdot*radtodeg;
191 else return BadUnits(); }
192 double GetMagBeta (
int unit)
const {
if (unit == inDegrees)
return fabs(beta)*radtodeg;
193 else return BadUnits(); }
205 double Getqbar (
void)
const {
return qbar; }
206 double GetqbarUW (
void)
const {
return qbarUW; }
207 double GetqbarUV (
void)
const {
return qbarUV; }
208 double GetReynoldsNumber(
void)
const {
return Re; }
211 double GetVt (
void)
const {
return Vt; }
226 double GetNz (
void)
const {
return Nz; }
229 double GetNy (
void)
const {
return Ny; }
233 double GetHOverBCG(
void)
const {
return hoverbcg; }
234 double GetHOverBMAC(
void)
const {
return hoverbmac; }
236 double GetGamma(
void)
const {
return gamma; }
237 double GetGroundTrack(
void)
const {
return psigt; }
239 double GetHeadWind(
void)
const;
240 double GetCrossWind(
void)
const;
244 void SetDayOfYear (
int doy) { day_of_year = doy; }
245 void SetSecondsInDay (
double sid) { seconds_in_day = sid; }
247 int GetDayOfYear (
void)
const {
return day_of_year; }
248 double GetSecondsInDay (
void)
const {
return seconds_in_day; }
250 double GetLongitudeRelativePosition (
void)
const;
251 double GetLatitudeRelativePosition (
void)
const;
252 double GetDistanceRelativePosition (
void)
const;
263 double KinematicViscosity;
296 double vcas, veas, vtrue;
297 double pt, tat, tatc;
316 double Vt, Vground, Vpitot;
317 double Mach, MachU, MachPitot;
318 double qbar, qbarUW, qbarUV;
324 double seconds_in_day;
327 double hoverbcg, hoverbmac;
329 void UpdateWindMatrices(
void);
331 void CalculateRelativePosition(
void);
334 double BadUnits(
void)
const;
335 void Debug(
int from);
const FGMatrix33 & GetTw2b(void)
Calculates and returns the wind-to-body axis transformation matrix.
double GetVequivalentKTS(void) const
Returns equivalent airspeed in knots.
double GetAltitudeASL(void) const
Get the altitude above sea level.
double GetTotalTemperature(void) const
Returns the total temperature.
double GetVcalibratedFPS(void) const
Returns Calibrated airspeed in feet/second.
double GetVtrueKTS() const
Returns the true airspeed in knots.
FGLocation holds an arbitrary location in the Earth centered Earth fixed reference frame (ECEF)...
double GetNy(void) const
The lateral acceleration in g's of the aircraft center of gravity.
double GetVtrueFPS() const
Returns the true airspeed in feet per second.
double GetNz(void) const
The vertical acceleration in g's of the aircraft center of gravity.
Base class for all scheduled JSBSim models.
double GetVequivalentFPS(void) const
Returns equivalent airspeed in feet/second.
This class implements a 3 element column vector.
const FGMatrix33 & GetTb2w(void)
Calculates and returns the body-to-wind axis transformation matrix.
Encapsulates various uncategorized scheduled functions.
double GetMachU(void) const
The mach number calculated using the vehicle X axis velocity.
Handles matrix math operations.
~FGAuxiliary()
Destructor.
FGAuxiliary(FGFDMExec *Executive)
Constructor.
bool Run(bool Holding)
Runs the Auxiliary routines; called by the Executive Can pass in a value indicating if the executive ...
double GetMach(void) const
Gets the Mach number.
double GetTotalPressure(void) const
Returns the total pressure.
double GetVcalibratedKTS(void) const
Returns Calibrated airspeed in knots.
Encapsulates the JSBSim simulation executive.
double GetVground(void) const
Gets the ground speed in feet per second.
double GetVt(void) const
Gets the magnitude of total vehicle velocity including wind effects in feet per second.