![]() |
JSBSim Flight Dynamics Model
1.0 (02 March 2017)
An Open Source Flight Dynamics and Control Software Library in C++
|
Initializes the simulation run. More...
#include <FGInitialCondition.h>
Public Member Functions | |
FGInitialCondition (FGFDMExec *fdmex) | |
Constructor. | |
~FGInitialCondition () | |
Destructor. | |
void | bind (FGPropertyManager *pm) |
double | GetAlphaDegIC (void) const |
Gets the initial angle of attack. More... | |
double | GetAlphaRadIC (void) const |
Gets the initial angle of attack. More... | |
double | GetAltitudeAGLFtIC (void) const |
Gets the initial altitude above ground level. More... | |
double | GetAltitudeASLFtIC (void) const |
Gets the initial altitude above sea level. More... | |
double | GetBetaDegIC (void) const |
Gets the initial sideslip angle. More... | |
double | GetBetaRadIC (void) const |
Gets the initial angle of sideslip. More... | |
double | GetClimbRateFpmIC (void) const |
Gets the initial climb rate. More... | |
double | GetClimbRateFpsIC (void) const |
Gets the initial climb rate. More... | |
double | GetFlightPathAngleDegIC (void) const |
Gets the initial flight path angle. More... | |
double | GetFlightPathAngleRadIC (void) const |
Gets the initial flight path angle. More... | |
double | GetGeodLatitudeDegIC (void) const |
Gets the initial geodetic latitude. More... | |
double | GetGeodLatitudeRadIC (void) const |
Gets the initial geodetic latitude. More... | |
double | GetLatitudeDegIC (void) const |
Gets the initial latitude. More... | |
double | GetLatitudeRadIC (void) const |
Gets the initial latitude. More... | |
double | GetLongitudeDegIC (void) const |
Gets the initial longitude. More... | |
double | GetLongitudeRadIC (void) const |
Gets the initial longitude. More... | |
double | GetMachIC (void) const |
Gets the initial mach. More... | |
const FGQuaternion & | GetOrientation (void) const |
Gets the initial orientation. More... | |
double | GetPhiDegIC (void) const |
Gets the initial roll angle. More... | |
double | GetPhiRadIC (void) const |
Gets the initial roll angle. More... | |
const FGLocation & | GetPosition (void) const |
Gets the initial position. More... | |
const FGColumnVector3 | GetPQRRadpsIC (void) const |
Gets the initial body rotation rate. More... | |
double | GetPRadpsIC () const |
Gets the initial body axis roll rate. More... | |
double | GetPsiDegIC (void) const |
Gets the initial heading angle. More... | |
double | GetPsiRadIC (void) const |
Gets the initial heading angle. More... | |
double | GetQRadpsIC () const |
Gets the initial body axis pitch rate. More... | |
double | GetRRadpsIC () const |
Gets the initial body axis yaw rate. More... | |
speedset | GetSpeedSet (void) const |
Gets the initial speedset. More... | |
double | GetTargetNlfIC (void) const |
Gets the target normal load factor set from IC. More... | |
double | GetTerrainElevationFtIC (void) const |
Gets the initial terrain elevation. More... | |
double | GetThetaDegIC (void) const |
Gets the initial pitch angle. More... | |
double | GetThetaRadIC (void) const |
Gets the initial pitch angle. More... | |
double | GetUBodyFpsIC (void) const |
Gets the initial body axis X velocity. More... | |
const FGColumnVector3 | GetUVWFpsIC (void) const |
Gets the initial body velocity. More... | |
double | GetVBodyFpsIC (void) const |
Gets the initial body axis Y velocity. More... | |
double | GetVcalibratedKtsIC (void) const |
Gets the initial calibrated airspeed. More... | |
double | GetVDownFpsIC (void) const |
Gets the initial local frame Z (Down) velocity. More... | |
double | GetVEastFpsIC (void) const |
Gets the initial local frame Y (East) velocity. More... | |
double | GetVequivalentKtsIC (void) const |
Gets the initial equivalent airspeed. More... | |
double | GetVgroundFpsIC (void) const |
Gets the initial ground velocity. More... | |
double | GetVgroundKtsIC (void) const |
Gets the initial ground speed. More... | |
double | GetVNorthFpsIC (void) const |
Gets the initial local frame X (North) velocity. More... | |
double | GetVtrueFpsIC (void) const |
Gets the initial true velocity. More... | |
double | GetVtrueKtsIC (void) const |
Gets the initial true velocity. More... | |
double | GetWBodyFpsIC (void) const |
Gets the initial body axis Z velocity. More... | |
double | GetWindDFpsIC (void) const |
Gets the initial wind velocity in local frame. More... | |
double | GetWindDirDegIC (void) const |
Gets the initial wind direction. More... | |
double | GetWindEFpsIC (void) const |
Gets the initial wind velocity in local frame. More... | |
double | GetWindFpsIC (void) const |
Gets the initial total wind velocity in feet/sec. More... | |
const FGColumnVector3 | GetWindNEDFpsIC (void) const |
Gets the initial wind velocity in the NED local frame. More... | |
double | GetWindNFpsIC (void) const |
Gets the initial wind velocity in local frame. More... | |
double | GetWindUFpsIC (void) const |
Gets the initial body axis X wind velocity. More... | |
double | GetWindVFpsIC (void) const |
Gets the initial body axis Y wind velocity. More... | |
double | GetWindWFpsIC (void) const |
Gets the initial body axis Z wind velocity. More... | |
bool | IsEngineRunning (unsigned int n) const |
Is an engine running ? More... | |
bool | Load (const SGPath &rstname, bool useStoredPath=true) |
Loads the initial conditions. More... | |
bool | NeedTrim (void) const |
Does initialization file call for trim ? More... | |
void | ResetIC (double u0, double v0, double w0, double p0, double q0, double r0, double alpha0, double beta0, double phi0, double theta0, double psi0, double latitudeRad0, double longitudeRad0, double altitudeAGL0, double gamma0) |
Resets the IC data structure to new values. More... | |
void | SetAlphaDegIC (double a) |
Sets angle of attack initial condition in degrees. More... | |
void | SetAlphaRadIC (double alpha) |
Sets the initial angle of attack. More... | |
void | SetAltitudeAGLFtIC (double agl) |
Sets the initial Altitude above ground level. More... | |
void | SetAltitudeASLFtIC (double altitudeASL) |
Sets the altitude above sea level initial condition in feet. More... | |
void | SetBetaDegIC (double b) |
Sets angle of sideslip initial condition in degrees. More... | |
void | SetBetaRadIC (double beta) |
Sets the initial sideslip angle. More... | |
void | SetClimbRateFpmIC (double roc) |
Sets the climb rate initial condition in feet/minute. More... | |
void | SetClimbRateFpsIC (double roc) |
Sets the initial climb rate. More... | |
void | SetCrossWindKtsIC (double cross) |
Sets the initial crosswind speed. More... | |
void | SetFlightPathAngleDegIC (double gamma) |
Sets the flight path angle initial condition in degrees. More... | |
void | SetFlightPathAngleRadIC (double gamma) |
Sets the initial flight path angle. More... | |
void | SetGeodLatitudeDegIC (double glat) |
Sets the initial geodetic latitude. More... | |
void | SetGeodLatitudeRadIC (double glat) |
Sets the initial geodetic latitude. More... | |
void | SetHeadWindKtsIC (double head) |
Sets the initial headwind velocity. More... | |
void | SetLatitudeDegIC (double lat) |
Sets the initial latitude. More... | |
void | SetLatitudeRadIC (double lat) |
Sets the initial latitude. More... | |
void | SetLongitudeDegIC (double lon) |
Sets the initial longitude. More... | |
void | SetLongitudeRadIC (double lon) |
Sets the initial longitude. More... | |
void | SetMachIC (double mach) |
Set mach initial condition. More... | |
void | SetPhiDegIC (double phi) |
Sets the roll angle initial condition in degrees. More... | |
void | SetPhiRadIC (double phi) |
Sets the initial roll angle. More... | |
void | SetPRadpsIC (double P) |
Sets the initial body axis roll rate. More... | |
void | SetPsiDegIC (double psi) |
Sets the heading angle initial condition in degrees. More... | |
void | SetPsiRadIC (double psi) |
Sets the initial heading angle. More... | |
void | SetQRadpsIC (double Q) |
Sets the initial body axis pitch rate. More... | |
void | SetRRadpsIC (double R) |
Sets the initial body axis yaw rate. More... | |
void | SetSeaLevelRadiusFtIC (double slr) |
Sets the initial sea level radius from planet center. More... | |
void | SetTargetNlfIC (double nlf) |
Sets the target normal load factor. More... | |
void | SetTerrainElevationFtIC (double elev) |
Sets the initial terrain elevation. More... | |
void | SetThetaDegIC (double theta) |
Sets pitch angle initial condition in degrees. More... | |
void | SetThetaRadIC (double theta) |
Sets the initial pitch angle. More... | |
void | SetUBodyFpsIC (double ubody) |
Sets the initial body axis X velocity. More... | |
void | SetVBodyFpsIC (double vbody) |
Sets the initial body axis Y velocity. More... | |
void | SetVcalibratedKtsIC (double vc) |
Set calibrated airspeed initial condition in knots. More... | |
void | SetVDownFpsIC (double vd) |
Sets the initial local axis down velocity. More... | |
void | SetVEastFpsIC (double ve) |
Sets the initial local axis east velocity. More... | |
void | SetVequivalentKtsIC (double ve) |
Set equivalent airspeed initial condition in knots. More... | |
void | SetVgroundFpsIC (double vg) |
Sets the initial ground speed. More... | |
void | SetVgroundKtsIC (double vg) |
Set ground speed initial condition in knots. More... | |
void | SetVNorthFpsIC (double vn) |
Sets the initial local axis north velocity. More... | |
void | SetVtrueFpsIC (double vt) |
Sets the initial true airspeed. More... | |
void | SetVtrueKtsIC (double vtrue) |
Set true airspeed initial condition in knots. More... | |
void | SetWBodyFpsIC (double wbody) |
Sets the initial body axis Z velocity. More... | |
void | SetWindDirDegIC (double dir) |
Sets the initial wind direction. More... | |
void | SetWindDownKtsIC (double wD) |
Sets the initial wind downward speed. More... | |
void | SetWindMagKtsIC (double mag) |
Sets the initial total wind speed. More... | |
void | SetWindNEDFpsIC (double wN, double wE, double wD) |
Sets the initial wind velocity. More... | |
![]() | |
FGJSBBase () | |
Constructor for FGJSBBase. | |
virtual | ~FGJSBBase () |
Destructor for FGJSBBase. | |
void | disableHighLighting (void) |
Disables highlighting in the console output. | |
std::string | GetVersion (void) |
Returns the version number of JSBSim. More... | |
void | PutMessage (const Message &msg) |
Places a Message structure on the Message queue. More... | |
void | PutMessage (const std::string &text) |
Creates a message with the given text and places it on the queue. More... | |
void | PutMessage (const std::string &text, bool bVal) |
Creates a message with the given text and boolean value and places it on the queue. More... | |
void | PutMessage (const std::string &text, int iVal) |
Creates a message with the given text and integer value and places it on the queue. More... | |
void | PutMessage (const std::string &text, double dVal) |
Creates a message with the given text and double value and places it on the queue. More... | |
int | SomeMessages (void) |
Reads the message on the queue (but does not delete it). More... | |
void | ProcessMessage (void) |
Reads the message on the queue and removes it from the queue. More... | |
Message * | ProcessNextMessage (void) |
Reads the next message on the queue and removes it from the queue. More... | |
Additional Inherited Members | |
![]() | |
enum | { eL = 1, eM, eN } |
Moments L, M, N. | |
enum | { eP = 1, eQ, eR } |
Rates P, Q, R. | |
enum | { eU = 1, eV, eW } |
Velocities U, V, W. | |
enum | { eX = 1, eY, eZ } |
Positions X, Y, Z. | |
enum | { ePhi = 1, eTht, ePsi } |
Euler angles Phi, Theta, Psi. | |
enum | { eDrag = 1, eSide, eLift } |
Stability axis forces, Drag, Side force, Lift. | |
enum | { eRoll = 1, ePitch, eYaw } |
Local frame orientation Roll, Pitch, Yaw. | |
enum | { eNorth = 1, eEast, eDown } |
Local frame position North, East, Down. | |
enum | { eLat = 1, eLong, eRad } |
Locations Radius, Latitude, Longitude. | |
enum | { inNone = 0, inDegrees, inRadians, inMeters, inFeet } |
Conversion specifiers. | |
![]() | |
static double | CelsiusToFahrenheit (double celsius) |
Converts from degrees Celsius to degrees Fahrenheit. More... | |
static double | CelsiusToKelvin (double celsius) |
Converts from degrees Celsius to degrees Kelvin. More... | |
static double | CelsiusToRankine (double celsius) |
Converts from degrees Celsius to degrees Rankine. More... | |
static double | Constrain (double min, double value, double max) |
Constrain a value between a minimum and a maximum value. | |
static bool | EqualToRoundoff (double a, double b) |
Finite precision comparison. More... | |
static bool | EqualToRoundoff (float a, float b) |
Finite precision comparison. More... | |
static bool | EqualToRoundoff (float a, double b) |
Finite precision comparison. More... | |
static bool | EqualToRoundoff (double a, float b) |
Finite precision comparison. More... | |
static double | FahrenheitToCelsius (double fahrenheit) |
Converts from degrees Fahrenheit to degrees Celsius. More... | |
static double | FeetToMeters (double measure) |
Converts from feet to meters. More... | |
static double | GaussianRandomNumber (void) |
static double | KelvinToCelsius (double kelvin) |
Converts from degrees Kelvin to degrees Celsius. More... | |
static double | KelvinToFahrenheit (double kelvin) |
Converts from degrees Kelvin to degrees Fahrenheit. More... | |
static double | KelvinToRankine (double kelvin) |
Converts from degrees Kelvin to degrees Rankine. More... | |
static double | MachFromVcalibrated (double vcas, double p, double psl, double rhosl) |
Calculate the Mach number from the calibrated airspeed. More... | |
static double | PitotTotalPressure (double mach, double p) |
Compute the total pressure in front of the Pitot tube. More... | |
static double | RankineToCelsius (double rankine) |
Converts from degrees Rankine to degrees Celsius. More... | |
static double | RankineToKelvin (double rankine) |
Converts from degrees Rankine to degrees Kelvin. More... | |
static double | sign (double num) |
static double | VcalibratedFromMach (double mach, double p, double psl, double rhosl) |
Calculate the calibrated airspeed from the Mach number. More... | |
![]() | |
static short | debug_lvl = 1 |
static char | highint [5] = {27, '[', '1', 'm', '\0' } |
highlights text | |
static char | halfint [5] = {27, '[', '2', 'm', '\0' } |
low intensity text | |
static char | normint [6] = {27, '[', '2', '2', 'm', '\0' } |
normal intensity text | |
static char | reset [5] = {27, '[', '0', 'm', '\0' } |
resets text properties | |
static char | underon [5] = {27, '[', '4', 'm', '\0' } |
underlines text | |
static char | underoff [6] = {27, '[', '2', '4', 'm', '\0' } |
underline off | |
static char | fgblue [6] = {27, '[', '3', '4', 'm', '\0' } |
blue text | |
static char | fgcyan [6] = {27, '[', '3', '6', 'm', '\0' } |
cyan text | |
static char | fgred [6] = {27, '[', '3', '1', 'm', '\0' } |
red text | |
static char | fggreen [6] = {27, '[', '3', '2', 'm', '\0' } |
green text | |
static char | fgdef [6] = {27, '[', '3', '9', 'm', '\0' } |
default text | |
![]() | |
void | Debug (int) |
![]() | |
static std::string | CreateIndexedPropertyName (const std::string &Property, int index) |
![]() | |
static const double | degtorad = 0.017453292519943295769236907684886 |
static const double | fpstokts = 1.0/ktstofps |
static const double | fttom = 0.3048 |
static int | gaussian_random_number_phase = 0 |
static const double | hptoftlbssec = 550.0 |
static const double | in3tom3 = 1.638706E-5 |
static const double | inchtoft = 0.08333333 |
static const double | inhgtopa = 3386.38 |
static const std::string | JSBSim_version = "1.0 " __DATE__ " " __TIME__ |
static const double | kgtolb = 2.20462 |
static const double | kgtoslug = 0.06852168 |
static const double | ktstofps = 1.68781 |
static const double | lbtoslug = 1.0/slugtolb |
static Message | localMsg |
static const double | m3toft3 = 1.0/(fttom*fttom*fttom) |
static double | Mair = 28.9645 |
static unsigned int | messageId = 0 |
static std::queue< Message > | Messages |
static const std::string | needed_cfg_version = "2.0" |
static const double | psftoinhg = 0.014138 |
static const double | psftopa = 47.88 |
static const double | radtodeg = 57.295779513082320876798154814105 |
static double | Reng = 1716.56 |
static double | Rstar = 1545.348 |
static const double | SHRatio = 1.40 |
static const double | slugtolb = 32.174049 |
Initializes the simulation run.
Takes a set of initial conditions (IC) and provide a kinematically consistent set of body axis velocity components, euler angles, and altitude. This class does not attempt to trim the model i.e. the sim will most likely start in a very dynamic state (unless, of course, you have chosen your IC's wisely, or started on the ground) even after setting it up with this class.
With a valid object of FGFDMExec and an aircraft model loaded:
Alternatively, you can load initial conditions from an XML file:
Since vc, ve, vt, and mach all represent speed, the remaining three are recalculated each time one of them is set (using the current altitude). The most recent speed set is remembered so that if and when altitude is reset, the last set speed is used to recalculate the remaining three. Setting any of the body components forces a recalculation of vt and vt then becomes the most recent speed set.
This class assumes that it will be used to set up the sim for a steady, zero pitch rate condition. Since any two of those angles specifies the third gamma (flight path angle) is favored when setting alpha and theta and alpha is favored when setting gamma. i.e.
The idea being that gamma is most interesting to pilots (since it is indicative of climb rate).
Setting climb rate is, for the purpose of this discussion, considered equivalent to setting gamma.
These are the items that can be set in an initialization file:
Definition at line 231 of file FGInitialCondition.h.
|
inline |
Gets the initial angle of attack.
Definition at line 358 of file FGInitialCondition.h.
|
inline |
Gets the initial angle of attack.
Definition at line 630 of file FGInitialCondition.h.
double GetAltitudeAGLFtIC | ( | void | ) | const |
Gets the initial altitude above ground level.
Definition at line 667 of file FGInitialCondition.cpp.
|
inline |
Gets the initial altitude above sea level.
Definition at line 391 of file FGInitialCondition.h.
|
inline |
Gets the initial sideslip angle.
Definition at line 362 of file FGInitialCondition.h.
|
inline |
Gets the initial angle of sideslip.
Definition at line 634 of file FGInitialCondition.h.
|
inline |
Gets the initial climb rate.
Definition at line 348 of file FGInitialCondition.h.
|
inline |
Gets the initial climb rate.
Definition at line 525 of file FGInitialCondition.h.
|
inline |
Gets the initial flight path angle.
Definition at line 353 of file FGInitialCondition.h.
|
inline |
Gets the initial flight path angle.
If total velocity is zero, this function returns zero.
Definition at line 625 of file FGInitialCondition.h.
|
inline |
Gets the initial geodetic latitude.
Definition at line 382 of file FGInitialCondition.h.
|
inline |
Gets the initial geodetic latitude.
Definition at line 646 of file FGInitialCondition.h.
|
inline |
Gets the initial latitude.
Definition at line 378 of file FGInitialCondition.h.
|
inline |
Gets the initial latitude.
Definition at line 642 of file FGInitialCondition.h.
|
inline |
Gets the initial longitude.
Definition at line 387 of file FGInitialCondition.h.
|
inline |
Gets the initial longitude.
Definition at line 651 of file FGInitialCondition.h.
double GetMachIC | ( | void | ) | const |
Gets the initial mach.
Definition at line 864 of file FGInitialCondition.cpp.
|
inline |
Gets the initial orientation.
Definition at line 655 of file FGInitialCondition.h.
|
inline |
Gets the initial roll angle.
Definition at line 370 of file FGInitialCondition.h.
|
inline |
Gets the initial roll angle.
Definition at line 659 of file FGInitialCondition.h.
|
inline |
Gets the initial position.
Definition at line 638 of file FGInitialCondition.h.
|
inline |
Gets the initial body rotation rate.
Definition at line 565 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis roll rate.
Definition at line 569 of file FGInitialCondition.h.
|
inline |
Gets the initial heading angle.
Definition at line 374 of file FGInitialCondition.h.
|
inline |
Gets the initial heading angle.
Definition at line 667 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis pitch rate.
Definition at line 573 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis yaw rate.
Definition at line 577 of file FGInitialCondition.h.
|
inline |
Gets the initial speedset.
Definition at line 671 of file FGInitialCondition.h.
|
inline |
Gets the target normal load factor set from IC.
Definition at line 675 of file FGInitialCondition.h.
double GetTerrainElevationFtIC | ( | void | ) | const |
Gets the initial terrain elevation.
Definition at line 674 of file FGInitialCondition.cpp.
|
inline |
Gets the initial pitch angle.
Definition at line 366 of file FGInitialCondition.h.
|
inline |
Gets the initial pitch angle.
Definition at line 663 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis X velocity.
Definition at line 541 of file FGInitialCondition.h.
|
inline |
Gets the initial body velocity.
Definition at line 534 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis Y velocity.
Definition at line 545 of file FGInitialCondition.h.
double GetVcalibratedKtsIC | ( | void | ) | const |
Gets the initial calibrated airspeed.
Definition at line 839 of file FGInitialCondition.cpp.
|
inline |
Gets the initial local frame Z (Down) velocity.
Definition at line 561 of file FGInitialCondition.h.
|
inline |
Gets the initial local frame Y (East) velocity.
Definition at line 557 of file FGInitialCondition.h.
double GetVequivalentKtsIC | ( | void | ) | const |
Gets the initial equivalent airspeed.
Definition at line 854 of file FGInitialCondition.cpp.
|
inline |
Gets the initial ground velocity.
Definition at line 477 of file FGInitialCondition.h.
|
inline |
Gets the initial ground speed.
Definition at line 336 of file FGInitialCondition.h.
|
inline |
Gets the initial local frame X (North) velocity.
Definition at line 553 of file FGInitialCondition.h.
|
inline |
Gets the initial true velocity.
Definition at line 481 of file FGInitialCondition.h.
|
inline |
Gets the initial true velocity.
Definition at line 340 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis Z velocity.
Definition at line 549 of file FGInitialCondition.h.
|
inline |
Gets the initial wind velocity in local frame.
Definition at line 513 of file FGInitialCondition.h.
double GetWindDirDegIC | ( | void | ) | const |
Gets the initial wind direction.
Definition at line 793 of file FGInitialCondition.cpp.
|
inline |
Gets the initial wind velocity in local frame.
Definition at line 509 of file FGInitialCondition.h.
double GetWindFpsIC | ( | void | ) | const |
Gets the initial total wind velocity in feet/sec.
Definition at line 816 of file FGInitialCondition.cpp.
|
inline |
Gets the initial wind velocity in the NED local frame.
Definition at line 497 of file FGInitialCondition.h.
|
inline |
Gets the initial wind velocity in local frame.
Definition at line 505 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis X wind velocity.
Definition at line 485 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis Y wind velocity.
Definition at line 489 of file FGInitialCondition.h.
|
inline |
Gets the initial body axis Z wind velocity.
Definition at line 493 of file FGInitialCondition.h.
|
inline |
Is an engine running ?
index | of the engine to be checked |
Definition at line 686 of file FGInitialCondition.h.
bool Load | ( | const SGPath & | rstname, |
bool | useStoredPath = true |
||
) |
Loads the initial conditions.
rstname | The name of an initial conditions file |
useStoredPath | true if the stored path to the IC file should be used |
Definition at line 883 of file FGInitialCondition.cpp.
|
inline |
Does initialization file call for trim ?
Definition at line 690 of file FGInitialCondition.h.
void ResetIC | ( | double | u0, |
double | v0, | ||
double | w0, | ||
double | p0, | ||
double | q0, | ||
double | r0, | ||
double | alpha0, | ||
double | beta0, | ||
double | phi0, | ||
double | theta0, | ||
double | psi0, | ||
double | latitudeRad0, | ||
double | longitudeRad0, | ||
double | altitudeAGL0, | ||
double | gamma0 | ||
) |
Resets the IC data structure to new values.
u,v,w,... |
Definition at line 89 of file FGInitialCondition.cpp.
|
inline |
Sets angle of attack initial condition in degrees.
a | Alpha in degrees |
Definition at line 261 of file FGInitialCondition.h.
void SetAlphaRadIC | ( | double | alpha | ) |
Sets the initial angle of attack.
alpha | Initial angle of attack in radians |
Definition at line 322 of file FGInitialCondition.cpp.
void SetAltitudeAGLFtIC | ( | double | agl | ) |
Sets the initial Altitude above ground level.
agl | Altitude above ground level in feet |
Definition at line 681 of file FGInitialCondition.cpp.
void SetAltitudeASLFtIC | ( | double | altitudeASL | ) |
Sets the altitude above sea level initial condition in feet.
altitudeASL | Altitude above sea level in feet |
Definition at line 694 of file FGInitialCondition.cpp.
|
inline |
Sets angle of sideslip initial condition in degrees.
B | Beta in degrees |
Definition at line 265 of file FGInitialCondition.h.
void SetBetaRadIC | ( | double | beta | ) |
Sets the initial sideslip angle.
beta | Initial angle of sideslip in radians. |
Definition at line 407 of file FGInitialCondition.cpp.
|
inline |
Sets the climb rate initial condition in feet/minute.
roc | Rate of Climb in feet/minute |
Definition at line 288 of file FGInitialCondition.h.
void SetClimbRateFpsIC | ( | double | roc | ) |
Sets the initial climb rate.
roc | Initial Rate of climb in feet/second |
Definition at line 293 of file FGInitialCondition.cpp.
void SetCrossWindKtsIC | ( | double | cross | ) |
Sets the initial crosswind speed.
cross | Initial crosswind speed, positive from left to right |
Definition at line 537 of file FGInitialCondition.cpp.
|
inline |
Sets the flight path angle initial condition in degrees.
gamma | Flight path angle in degrees |
Definition at line 292 of file FGInitialCondition.h.
|
inline |
Sets the initial flight path angle.
gamma | Initial flight path angle in radians |
Definition at line 581 of file FGInitialCondition.h.
|
inline |
Sets the initial geodetic latitude.
This method modifies the geodetic altitude in order to keep the altitude above sea level unchanged.
glat | Initial geodetic latitude in degrees |
Definition at line 319 of file FGInitialCondition.h.
void SetGeodLatitudeRadIC | ( | double | glat | ) |
Sets the initial geodetic latitude.
This method modifies the geodetic altitude in order to keep the altitude above sea level unchanged.
glat | Initial geodetic latitude in radians |
Definition at line 742 of file FGInitialCondition.cpp.
void SetHeadWindKtsIC | ( | double | head | ) |
Sets the initial headwind velocity.
head | Initial headwind speed in knots |
Definition at line 560 of file FGInitialCondition.cpp.
|
inline |
Sets the initial latitude.
lat | Initial latitude in degrees |
Definition at line 313 of file FGInitialCondition.h.
void SetLatitudeRadIC | ( | double | lat | ) |
Sets the initial latitude.
lat | Initial latitude in radians |
Definition at line 753 of file FGInitialCondition.cpp.
|
inline |
Sets the initial longitude.
lon | Initial longitude in degrees |
Definition at line 324 of file FGInitialCondition.h.
void SetLongitudeRadIC | ( | double | lon | ) |
Sets the initial longitude.
lon | Initial longitude in radians |
Definition at line 773 of file FGInitialCondition.cpp.
void SetMachIC | ( | double | mach | ) |
Set mach initial condition.
mach | Mach number |
Definition at line 170 of file FGInitialCondition.cpp.
|
inline |
Sets the roll angle initial condition in degrees.
phi | roll angle in degrees |
Definition at line 280 of file FGInitialCondition.h.
|
inline |
Sets the initial roll angle.
phi | Initial roll angle in radians |
Definition at line 594 of file FGInitialCondition.h.
|
inline |
Sets the initial body axis roll rate.
P | Initial roll rate in radians/second |
Definition at line 435 of file FGInitialCondition.h.
|
inline |
Sets the heading angle initial condition in degrees.
psi | Heading angle in degrees |
Definition at line 284 of file FGInitialCondition.h.
|
inline |
Sets the initial heading angle.
psi | Initial heading angle in radians |
Definition at line 602 of file FGInitialCondition.h.
|
inline |
Sets the initial body axis pitch rate.
Q | Initial pitch rate in radians/second |
Definition at line 439 of file FGInitialCondition.h.
|
inline |
Sets the initial body axis yaw rate.
R | initial yaw rate in radians/second |
Definition at line 443 of file FGInitialCondition.h.
void SetSeaLevelRadiusFtIC | ( | double | slr | ) |
Sets the initial sea level radius from planet center.
sl_rad | sea level radius in feet |
Definition at line 648 of file FGInitialCondition.cpp.
|
inline |
Sets the target normal load factor.
nlf | Normal load factor |
Definition at line 620 of file FGInitialCondition.h.
void SetTerrainElevationFtIC | ( | double | elev | ) |
Sets the initial terrain elevation.
elev | Initial terrain elevation in feet |
Definition at line 655 of file FGInitialCondition.cpp.
|
inline |
Sets pitch angle initial condition in degrees.
theta | Theta (pitch) angle in degrees |
Definition at line 269 of file FGInitialCondition.h.
|
inline |
Sets the initial pitch angle.
theta | Initial pitch angle in radians |
Definition at line 598 of file FGInitialCondition.h.
|
inline |
Sets the initial body axis X velocity.
ubody | Initial X velocity in feet/second |
Definition at line 411 of file FGInitialCondition.h.
|
inline |
Sets the initial body axis Y velocity.
vbody | Initial Y velocity in feet/second |
Definition at line 415 of file FGInitialCondition.h.
void SetVcalibratedKtsIC | ( | double | vc | ) |
Set calibrated airspeed initial condition in knots.
vc | Calibrated airspeed in knots |
Definition at line 180 of file FGInitialCondition.cpp.
|
inline |
Sets the initial local axis down velocity.
vd | Initial down velocity in feet/second |
Definition at line 431 of file FGInitialCondition.h.
|
inline |
Sets the initial local axis east velocity.
ve | Initial east velocity in feet/second |
Definition at line 427 of file FGInitialCondition.h.
void SetVequivalentKtsIC | ( | double | ve | ) |
Set equivalent airspeed initial condition in knots.
ve | Equivalent airspeed in knots |
Definition at line 159 of file FGInitialCondition.cpp.
void SetVgroundFpsIC | ( | double | vg | ) |
Sets the initial ground speed.
vg | Initial ground speed in feet/second |
Definition at line 245 of file FGInitialCondition.cpp.
|
inline |
Set ground speed initial condition in knots.
vg | Ground speed in knots |
Definition at line 253 of file FGInitialCondition.h.
|
inline |
Sets the initial local axis north velocity.
vn | Initial north velocity in feet/second |
Definition at line 423 of file FGInitialCondition.h.
void SetVtrueFpsIC | ( | double | vt | ) |
Sets the initial true airspeed.
vt | Initial true airspeed in feet/second |
Definition at line 269 of file FGInitialCondition.cpp.
|
inline |
Set true airspeed initial condition in knots.
vtrue | True airspeed in knots |
Definition at line 249 of file FGInitialCondition.h.
|
inline |
Sets the initial body axis Z velocity.
wbody | Initial Z velocity in feet/second |
Definition at line 419 of file FGInitialCondition.h.
void SetWindDirDegIC | ( | double | dir | ) |
Sets the initial wind direction.
dir | Initial direction wind is coming from in degrees |
Definition at line 630 of file FGInitialCondition.cpp.
void SetWindDownKtsIC | ( | double | wD | ) |
Sets the initial wind downward speed.
wD | Initial downward wind speed in knots |
Definition at line 588 of file FGInitialCondition.cpp.
void SetWindMagKtsIC | ( | double | mag | ) |
Sets the initial total wind speed.
mag | Initial wind velocity magnitude in knots |
Definition at line 604 of file FGInitialCondition.cpp.
void SetWindNEDFpsIC | ( | double | wN, |
double | wE, | ||
double | wD | ||
) |
Sets the initial wind velocity.
wN | Initial wind velocity in local north direction, feet/second |
wE | Initial wind velocity in local east direction, feet/second |
wD | Initial wind velocity in local down direction, feet/second |
Definition at line 524 of file FGInitialCondition.cpp.