 |
JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
|
43 #include "math/FGLocation.h"
109 bool InitModel(
void)
override;
119 bool Run(
bool Holding)
override;
152 double GetTAT_C(
void)
const {
return tatc; }
154 double GetPilotAccel(
int idx)
const {
return vPilotAccel(idx); }
155 double GetNpilot(
int idx)
const {
return vPilotAccelN(idx); }
156 double GetAeroPQR(
int axis)
const {
return vAeroPQR(axis); }
157 double GetEulerRates(
int axis)
const {
return vEulerRates(axis); }
159 const FGColumnVector3& GetPilotAccel (
void)
const {
return vPilotAccel; }
160 const FGColumnVector3& GetNpilot (
void)
const {
return vPilotAccelN; }
161 const FGColumnVector3& GetNcg (
void)
const {
return vNcg; }
162 double GetNcg (
int idx)
const {
return vNcg(idx); }
163 double GetNlf (
void)
const;
164 const FGColumnVector3& GetAeroPQR (
void)
const {
return vAeroPQR; }
165 const FGColumnVector3& GetEulerRates (
void)
const {
return vEulerRates; }
166 const FGColumnVector3& GetAeroUVW (
void)
const {
return vAeroUVW; }
167 const FGLocation& GetLocationVRP(
void)
const {
return vLocationVRP; }
169 double GetAeroUVW (
int idx)
const {
return vAeroUVW(idx); }
170 double Getalpha (
void)
const {
return alpha; }
171 double Getbeta (
void)
const {
return beta; }
172 double Getadot (
void)
const {
return adot; }
173 double Getbdot (
void)
const {
return bdot; }
174 double GetMagBeta (
void)
const {
return fabs(beta); }
176 double Getalpha (
int unit)
const {
if (unit == inDegrees)
return alpha*radtodeg;
177 else return BadUnits(); }
178 double Getbeta (
int unit)
const {
if (unit == inDegrees)
return beta*radtodeg;
179 else return BadUnits(); }
180 double Getadot (
int unit)
const {
if (unit == inDegrees)
return adot*radtodeg;
181 else return BadUnits(); }
182 double Getbdot (
int unit)
const {
if (unit == inDegrees)
return bdot*radtodeg;
183 else return BadUnits(); }
184 double GetMagBeta (
int unit)
const {
if (unit == inDegrees)
return fabs(beta)*radtodeg;
185 else return BadUnits(); }
197 double Getqbar (
void)
const {
return qbar; }
198 double GetqbarUW (
void)
const {
return qbarUW; }
199 double GetqbarUV (
void)
const {
return qbarUV; }
200 double GetReynoldsNumber(
void)
const {
return Re; }
204 double GetVt (
void)
const {
return Vt; }
219 double GetNx (
void)
const {
return Nx; }
222 double GetNy (
void)
const {
return Ny; }
225 double GetNz (
void)
const {
return Nz; }
229 double GetHOverBCG(
void)
const {
return hoverbcg; }
230 double GetHOverBMAC(
void)
const {
return hoverbmac; }
232 double GetGamma(
void)
const {
return gamma; }
233 double GetGroundTrack(
void)
const {
return psigt; }
235 double GetGamma(
int unit)
const {
236 if (unit == inDegrees)
return gamma*radtodeg;
237 else return BadUnits();
242 void SetDayOfYear (
int doy) { day_of_year = doy; }
243 void SetSecondsInDay (
double sid) { seconds_in_day = sid; }
245 int GetDayOfYear (
void)
const {
return day_of_year; }
246 double GetSecondsInDay (
void)
const {
return seconds_in_day; }
248 double GetLongitudeRelativePosition (
void)
const;
249 double GetLatitudeRelativePosition (
void)
const;
250 double GetDistanceRelativePosition (
void)
const;
252 void SetAeroPQR(
const FGColumnVector3& tt) { vAeroPQR = tt; }
261 double KinematicViscosity;
265 double StandardGravity;
291 double pt, tat, tatc;
308 double qbar, qbarUW, qbarUV;
314 double seconds_in_day;
317 double hoverbcg, hoverbmac;
319 void UpdateWindMatrices(
void);
321 void CalculateRelativePosition(
void);
324 double BadUnits(
void)
const;
325 void Debug(
int from)
override;
Encapsulates the JSBSim simulation executive.
This class implements a 3 element column vector.
FGLocation holds an arbitrary location in the Earth centered Earth fixed reference frame (ECEF).
bool Run(bool Holding) override
Runs the Auxiliary routines; called by the Executive Can pass in a value indicating if the executive ...
Base class for all scheduled JSBSim models.
FGAuxiliary(FGFDMExec *Executive)
Constructor.
const FGMatrix33 & GetTb2w(void) const
Calculates and returns the body-to-wind axis transformation matrix.
double GetVequivalentFPS(void) const
Returns equivalent airspeed in feet/second.
double GetVtrueFPS() const
Returns the true airspeed in feet per second.
double GetVt(void) const
Gets the magnitude of total vehicle velocity including wind effects in feet per second.
double GetNx(void) const
The longitudinal acceleration in g's of the aircraft center of gravity.
double GetVcalibratedKTS(void) const
Returns Calibrated airspeed in knots.
~FGAuxiliary()
Destructor.
double GetVground(void) const
Gets the ground speed in feet per second.
Handles matrix math operations.
const FGMatrix33 & GetTw2b(void) const
Calculates and returns the wind-to-body axis transformation matrix.
double GetNy(void) const
The lateral acceleration in g's of the aircraft center of gravity.
double GetVcalibratedFPS(void) const
Returns Calibrated airspeed in feet/second.
double GetVtrueKTS() const
Returns the true airspeed in knots.
double GetMachU(void) const
The mach number calculated using the vehicle X axis velocity.
double GetTotalPressure(void) const
Returns the total pressure.
double GetMach(void) const
Gets the Mach number.
Encapsulates various uncategorized scheduled functions.
double GetTotalTemperature(void) const
Returns the total temperature.
double GetVequivalentKTS(void) const
Returns equivalent airspeed in knots.
double GetNz(void) const
The vertical acceleration in g's of the aircraft center of gravity.