FlightGear next
|
#include <FGFDMExec.h>
Inherits JSBSim::FGJSBBase.
Classes | |
struct | PropertyCatalogStructure |
Public Types | |
enum | eModels { ePropagate =0 , eInput , eInertial , eAtmosphere , eWinds , eSystems , eMassBalance , eAuxiliary , ePropulsion , eAerodynamics , eGroundReactions , eExternalReactions , eBuoyantForces , eAircraft , eAccelerations , eOutput , eNumStandardModels } |
![]() | |
enum | { eL = 1 , eM , eN } |
Moments L, M, N. More... | |
enum | { eP = 1 , eQ , eR } |
Rates P, Q, R. More... | |
enum | { eU = 1 , eV , eW } |
Velocities U, V, W. More... | |
enum | { eX = 1 , eY , eZ } |
Positions X, Y, Z. More... | |
enum | { ePhi = 1 , eTht , ePsi } |
Euler angles Phi, Theta, Psi. More... | |
enum | { eDrag = 1 , eSide , eLift } |
Stability axis forces, Drag, Side force, Lift. More... | |
enum | { eRoll = 1 , ePitch , eYaw } |
Local frame orientation Roll, Pitch, Yaw. More... | |
enum | { eNorth = 1 , eEast , eDown } |
Local frame position North, East, Down. More... | |
enum | { eLat = 1 , eLong , eRad } |
Locations Radius, Latitude, Longitude. More... | |
enum | { inNone = 0 , inDegrees , inRadians , inMeters , inFeet } |
Conversion specifiers. More... | |
Public Member Functions | |
FGFDMExec (FGPropertyManager *root=0, unsigned int *fdmctr=0) | |
Default constructor. | |
~FGFDMExec () | |
Default destructor. | |
void | Unbind (void) |
Unbind all tied JSBSim properties. | |
bool | Run (void) |
This function executes each scheduled model in succession. | |
bool | RunIC (void) |
Initializes the sim from the initial condition object and executes each scheduled model without integrating i.e. | |
bool | LoadModel (const SGPath &AircraftPath, const SGPath &EnginePath, const SGPath &SystemsPath, const std::string &model, bool addModelToPath=true) |
Loads an aircraft model. | |
bool | LoadModel (const std::string &model, bool addModelToPath=true) |
Loads an aircraft model. | |
bool | LoadScript (const SGPath &Script, double deltaT=0.0, const SGPath &initfile=SGPath()) |
Load a script. | |
bool | SetEnginePath (const SGPath &path) |
Set the path to the engine config file directories. | |
bool | SetAircraftPath (const SGPath &path) |
Set the path to the aircraft config file directories. | |
bool | SetSystemsPath (const SGPath &path) |
Set the path to the systems config file directories. | |
bool | SetOutputPath (const SGPath &path) |
Set the directory where the output files will be written. | |
const SGPath & | GetEnginePath (void) |
Retrieves the engine path. | |
const SGPath & | GetAircraftPath (void) |
Retrieves the aircraft path. | |
const SGPath & | GetSystemsPath (void) |
Retrieves the systems path. | |
const SGPath & | GetFullAircraftPath (void) |
Retrieves the full aircraft path name. | |
const SGPath & | GetOutputPath (void) |
Retrieves the path to the output files. | |
double | GetPropertyValue (const std::string &property) |
Retrieves the value of a property. | |
void | SetPropertyValue (const std::string &property, double value) |
Sets a property value. | |
const std::string & | GetModelName (void) const |
Returns the model name. | |
FGPropertyManager * | GetPropertyManager (void) |
Returns a pointer to the property manager object. | |
std::vector< std::string > | EnumerateFDMs (void) |
Returns a vector of strings representing the names of all loaded models (future) | |
int | GetFDMCount (void) const |
Gets the number of child FDMs. | |
childData * | GetChildFDM (int i) const |
Gets a particular child FDM. | |
void | SetChild (bool ch) |
Marks this instance of the Exec object as a "child" object. | |
bool | SetOutputDirectives (const SGPath &fname) |
Sets the output (logging) mechanism for this run. | |
void | ForceOutput (int idx=0) |
Forces the specified output object to print its items once. | |
void | SetLoggingRate (double rate) |
Sets the logging rate in Hz for all output objects (if any). | |
bool | SetOutputFileName (const int n, const std::string &fname) |
Sets (or overrides) the output filename. | |
std::string | GetOutputFileName (int n) const |
Retrieves the current output filename. | |
void | DoTrim (int mode) |
Executes trimming in the selected mode. | |
void | DisableOutput (void) |
Disables data logging to all outputs. | |
void | EnableOutput (void) |
Enables data logging to all outputs. | |
void | Hold (void) |
Pauses execution by preventing time from incrementing. | |
void | EnableIncrementThenHold (int Timesteps) |
Turn on hold after increment. | |
void | CheckIncrementalHold (void) |
Checks if required to hold afer increment. | |
void | Resume (void) |
Resumes execution from a "Hold". | |
bool | Holding (void) |
Returns true if the simulation is Holding (i.e. simulation time is not moving). | |
void | ResetToInitialConditions (int mode) |
Resets the initial conditions object and prepares the simulation to run again. | |
void | SetDebugLevel (int level) |
Sets the debug level. | |
void | BuildPropertyCatalog (struct PropertyCatalogStructure *pcs) |
Builds a catalog of properties. | |
std::string | QueryPropertyCatalog (const std::string &check) |
Retrieves property or properties matching the supplied string. | |
void | PrintPropertyCatalog (void) |
void | PrintSimulationConfiguration (void) const |
std::vector< std::string > & | GetPropertyCatalog (void) |
void | SetTrimStatus (bool status) |
bool | GetTrimStatus (void) const |
void | SetTrimMode (int mode) |
int | GetTrimMode (void) const |
std::string | GetPropulsionTankReport () |
double | GetSimTime (void) const |
Returns the cumulative simulation time in seconds. | |
double | GetDeltaT (void) const |
Returns the simulation delta T. | |
void | SuspendIntegration (void) |
Suspends the simulation and sets the delta T to zero. | |
void | ResumeIntegration (void) |
Resumes the simulation by resetting delta T to the correct value. | |
bool | IntegrationSuspended (void) const |
Returns the simulation suspension state. | |
double | Setsim_time (double cur_time) |
Sets the current sim time. | |
void | Setdt (double delta_t) |
Sets the integration time step for the simulation executive. | |
void | SetRootDir (const SGPath &rootDir) |
Set the root directory that is used to obtain absolute paths from relative paths. | |
const SGPath & | GetRootDir (void) const |
Retrieve the Root Directory. | |
double | IncrTime (void) |
Increments the simulation time if not in Holding mode. | |
unsigned int | GetFrame (void) const |
Retrieves the current frame count. | |
int | GetDebugLevel (void) const |
Retrieves the current debug level setting. | |
void | Initialize (FGInitialCondition *FGIC) |
Initializes the simulation with initial conditions. | |
void | SetHoldDown (bool hd) |
Sets the property forces/hold-down. | |
bool | GetHoldDown (void) const |
Gets the value of the property forces/hold-down. | |
FGTemplateFunc * | GetTemplateFunc (const std::string &name) |
void | AddTemplateFunc (const std::string &name, Element *el) |
const std::shared_ptr< std::default_random_engine > & | GetRandomEngine (void) const |
Top-level executive State and Model retrieval mechanism | |
FGAtmosphere * | GetAtmosphere (void) |
FGAccelerations * | GetAccelerations (void) |
Returns the FGAccelerations pointer. | |
FGWinds * | GetWinds (void) |
Returns the FGWinds pointer. | |
FGFCS * | GetFCS (void) |
Returns the FGFCS pointer. | |
FGPropulsion * | GetPropulsion (void) |
Returns the FGPropulsion pointer. | |
FGMassBalance * | GetMassBalance (void) |
Returns the FGAircraft pointer. | |
FGAerodynamics * | GetAerodynamics (void) |
Returns the FGAerodynamics pointer. | |
FGInertial * | GetInertial (void) |
Returns the FGInertial pointer. | |
FGGroundReactions * | GetGroundReactions (void) |
Returns the FGGroundReactions pointer. | |
FGExternalReactions * | GetExternalReactions (void) |
Returns the FGExternalReactions pointer. | |
FGBuoyantForces * | GetBuoyantForces (void) |
Returns the FGBuoyantForces pointer. | |
FGAircraft * | GetAircraft (void) |
Returns the FGAircraft pointer. | |
FGPropagate * | GetPropagate (void) |
Returns the FGPropagate pointer. | |
FGAuxiliary * | GetAuxiliary (void) |
Returns the FGAuxiliary pointer. | |
FGInput * | GetInput (void) |
Returns the FGInput pointer. | |
FGOutput * | GetOutput (void) |
Returns the FGOutput pointer. | |
FGScript * | GetScript (void) |
Retrieves the script object. | |
FGInitialCondition * | GetIC (void) |
Returns a pointer to the FGInitialCondition object. | |
FGTrim * | GetTrim (void) |
Returns a pointer to the FGTrim object. | |
![]() | |
FGJSBBase () | |
Constructor for FGJSBBase. | |
virtual | ~FGJSBBase () |
Destructor for FGJSBBase. | |
void | PutMessage (const Message &msg) |
Places a Message structure on the Message queue. | |
void | PutMessage (const std::string &text) |
Creates a message with the given text and places it on the queue. | |
void | PutMessage (const std::string &text, bool bVal) |
Creates a message with the given text and boolean value and places it on the queue. | |
void | PutMessage (const std::string &text, int iVal) |
Creates a message with the given text and integer value and places it on the queue. | |
void | PutMessage (const std::string &text, double dVal) |
Creates a message with the given text and double value and places it on the queue. | |
int | SomeMessages (void) const |
Reads the message on the queue (but does not delete it). | |
void | ProcessMessage (void) |
Reads the message on the queue and removes it from the queue. | |
Message * | ProcessNextMessage (void) |
Reads the next message on the queue and removes it from the queue. | |
void | disableHighLighting (void) |
Disables highlighting in the console output. | |
Static Public Attributes | |
static const int | START_NEW_OUTPUT = 0x1 |
Mode flags for ResetToInitialConditions. | |
static const int | DONT_EXECUTE_RUN_IC = 0x2 |
![]() | |
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 | |
static short | debug_lvl = 1 |
Additional Inherited Members | |
static const std::string & | GetVersion (void) |
Returns the version number of JSBSim. | |
static constexpr double | KelvinToFahrenheit (double kelvin) |
Converts from degrees Kelvin to degrees Fahrenheit. | |
static constexpr double | CelsiusToRankine (double celsius) |
Converts from degrees Celsius to degrees Rankine. | |
static constexpr double | RankineToCelsius (double rankine) |
Converts from degrees Rankine to degrees Celsius. | |
static constexpr double | KelvinToRankine (double kelvin) |
Converts from degrees Kelvin to degrees Rankine. | |
static constexpr double | RankineToKelvin (double rankine) |
Converts from degrees Rankine to degrees Kelvin. | |
static constexpr double | FahrenheitToCelsius (double fahrenheit) |
Converts from degrees Fahrenheit to degrees Celsius. | |
static constexpr double | CelsiusToFahrenheit (double celsius) |
Converts from degrees Celsius to degrees Fahrenheit. | |
static constexpr double | CelsiusToKelvin (double celsius) |
Converts from degrees Celsius to degrees Kelvin. | |
static constexpr double | KelvinToCelsius (double kelvin) |
Converts from degrees Kelvin to degrees Celsius. | |
static constexpr double | FeetToMeters (double measure) |
Converts from feet to meters. | |
static double | PitotTotalPressure (double mach, double p) |
Compute the total pressure in front of the Pitot tube. | |
static double | MachFromImpactPressure (double qc, double p) |
Compute the Mach number from the differential pressure (qc) and the static pressure. | |
static double | VcalibratedFromMach (double mach, double p) |
Calculate the calibrated airspeed from the Mach number. | |
static double | MachFromVcalibrated (double vcas, double p) |
Calculate the Mach number from the calibrated airspeed.Based on the formulas in the US Air Force Aircraft Performance Flight Testing Manual (AFFTC-TIH-99-01). | |
static bool | EqualToRoundoff (double a, double b) |
Finite precision comparison. | |
static bool | EqualToRoundoff (float a, float b) |
Finite precision comparison. | |
static bool | EqualToRoundoff (float a, double b) |
Finite precision comparison. | |
static bool | EqualToRoundoff (double a, float b) |
Finite precision comparison. | |
static constexpr double | Constrain (double min, double value, double max) |
Constrain a value between a minimum and a maximum value. | |
static constexpr double | sign (double num) |
static double | GaussianRandomNumber (void) |
static std::string | CreateIndexedPropertyName (const std::string &Property, int index) |
static Message | localMsg |
static std::queue< Message > | Messages |
static unsigned int | messageId = 0 |
static constexpr double | radtodeg = 180. / 3.14159265358979323846 |
static constexpr double | degtorad = 3.14159265358979323846 / 180. |
static constexpr double | hptoftlbssec = 550.0 |
static constexpr double | psftoinhg = 0.014138 |
static constexpr double | psftopa = 47.88 |
static constexpr double | ktstofps = 1.68781 |
static constexpr double | fpstokts = 1.0 / ktstofps |
static constexpr double | inchtoft = 1.0/12.0 |
static constexpr double | fttom = 0.3048 |
static constexpr double | m3toft3 = 1.0/(fttom*fttom*fttom) |
static constexpr double | in3tom3 = inchtoft*inchtoft*inchtoft/m3toft3 |
static constexpr double | inhgtopa = 3386.38 |
static constexpr double | slugtolb = 32.174049 |
Note that definition of lbtoslug by the inverse of slugtolb and not to a different constant you can also get from some tables will make lbtoslug*slugtolb == 1 up to the magnitude of roundoff. | |
static constexpr double | lbtoslug = 1.0/slugtolb |
static constexpr double | kgtolb = 2.20462 |
static constexpr double | kgtoslug = 0.06852168 |
static const std::string | needed_cfg_version = "2.0" |
static const std::string | JSBSim_version = JSBSIM_VERSION " " __DATE__ " " __TIME__ |
static int | gaussian_random_number_phase = 0 |
Definition at line 185 of file FGFDMExec.h.
Definition at line 230 of file FGFDMExec.h.
JSBSim::FGFDMExec::FGFDMExec | ( | FGPropertyManager * | root = 0, |
unsigned int * | fdmctr = 0 ) |
Default constructor.
Definition at line 76 of file FGFDMExec.cpp.
JSBSim::FGFDMExec::~FGFDMExec | ( | ) |
Default destructor.
Definition at line 181 of file FGFDMExec.cpp.
|
inline |
Definition at line 615 of file FGFDMExec.h.
void JSBSim::FGFDMExec::BuildPropertyCatalog | ( | struct PropertyCatalogStructure * | pcs | ) |
Builds a catalog of properties.
This function descends the property tree and creates a list (an STL vector) containing the name and node for all properties.
pcs | The "root" property catalog structure pointer. |
Definition at line 924 of file FGFDMExec.cpp.
void JSBSim::FGFDMExec::CheckIncrementalHold | ( | void | ) |
Checks if required to hold afer increment.
Definition at line 1137 of file FGFDMExec.cpp.
|
inline |
Disables data logging to all outputs.
Definition at line 478 of file FGFDMExec.h.
void JSBSim::FGFDMExec::DoTrim | ( | int | mode | ) |
Executes trimming in the selected mode.
mode | Specifies how to trim:
|
Definition at line 1161 of file FGFDMExec.cpp.
|
inline |
Turn on hold after increment.
Definition at line 484 of file FGFDMExec.h.
|
inline |
Enables data logging to all outputs.
Definition at line 480 of file FGFDMExec.h.
vector< string > JSBSim::FGFDMExec::EnumerateFDMs | ( | void | ) |
Returns a vector of strings representing the names of all loaded models (future)
Definition at line 642 of file FGFDMExec.cpp.
|
inline |
Forces the specified output object to print its items once.
Definition at line 449 of file FGFDMExec.h.
|
inline |
Returns the FGAccelerations pointer.
Definition at line 355 of file FGFDMExec.h.
|
inline |
Returns the FGAerodynamics pointer.
Definition at line 365 of file FGFDMExec.h.
|
inline |
Returns the FGAircraft pointer.
Definition at line 375 of file FGFDMExec.h.
|
inline |
Retrieves the aircraft path.
Definition at line 395 of file FGFDMExec.h.
|
inline |
Returns the FGAtmosphere pointer.
Definition at line 353 of file FGFDMExec.h.
|
inline |
Returns the FGAuxiliary pointer.
Definition at line 379 of file FGFDMExec.h.
|
inline |
Returns the FGBuoyantForces pointer.
Definition at line 373 of file FGFDMExec.h.
|
inline |
Gets a particular child FDM.
Definition at line 426 of file FGFDMExec.h.
|
inline |
Retrieves the current debug level setting.
Definition at line 594 of file FGFDMExec.h.
|
inline |
Returns the simulation delta T.
Definition at line 545 of file FGFDMExec.h.
|
inline |
Retrieves the engine path.
Definition at line 393 of file FGFDMExec.h.
|
inline |
Returns the FGExternalReactions pointer.
Definition at line 371 of file FGFDMExec.h.
|
inline |
Returns the FGFCS pointer.
Definition at line 359 of file FGFDMExec.h.
|
inline |
Gets the number of child FDMs.
Definition at line 424 of file FGFDMExec.h.
|
inline |
Retrieves the current frame count.
Definition at line 591 of file FGFDMExec.h.
|
inline |
Retrieves the full aircraft path name.
Definition at line 399 of file FGFDMExec.h.
|
inline |
Returns the FGGroundReactions pointer.
Definition at line 369 of file FGFDMExec.h.
|
inline |
Gets the value of the property forces/hold-down.
Definition at line 609 of file FGFDMExec.h.
|
inline |
Returns a pointer to the FGInitialCondition object.
Definition at line 387 of file FGFDMExec.h.
|
inline |
Returns the FGInertial pointer.
Definition at line 367 of file FGFDMExec.h.
|
inline |
Returns the FGInput pointer.
Definition at line 381 of file FGFDMExec.h.
|
inline |
Returns the FGAircraft pointer.
Definition at line 363 of file FGFDMExec.h.
|
inline |
Returns the model name.
Definition at line 417 of file FGFDMExec.h.
|
inline |
Returns the FGOutput pointer.
Definition at line 383 of file FGFDMExec.h.
|
inline |
Retrieves the current output filename.
n | index of file |
Definition at line 464 of file FGFDMExec.h.
|
inline |
Retrieves the path to the output files.
Definition at line 401 of file FGFDMExec.h.
|
inline |
Returns the FGPropagate pointer.
Definition at line 377 of file FGFDMExec.h.
|
inline |
Definition at line 532 of file FGFDMExec.h.
FGPropertyManager * JSBSim::FGFDMExec::GetPropertyManager | ( | void | ) |
Returns a pointer to the property manager object.
Definition at line 1121 of file FGFDMExec.cpp.
|
inline |
Retrieves the value of a property.
property | the name of the property |
Definition at line 406 of file FGFDMExec.h.
|
inline |
Returns the FGPropulsion pointer.
Definition at line 361 of file FGFDMExec.h.
string JSBSim::FGFDMExec::GetPropulsionTankReport | ( | ) |
Definition at line 917 of file FGFDMExec.cpp.
|
inline |
Definition at line 619 of file FGFDMExec.h.
|
inline |
Retrieve the Root Directory.
Definition at line 583 of file FGFDMExec.h.
|
inline |
Retrieves the script object.
Definition at line 385 of file FGFDMExec.h.
|
inline |
Returns the cumulative simulation time in seconds.
Definition at line 542 of file FGFDMExec.h.
|
inline |
Retrieves the systems path.
Definition at line 397 of file FGFDMExec.h.
|
inline |
Definition at line 611 of file FGFDMExec.h.
FGTrim * JSBSim::FGFDMExec::GetTrim | ( | void | ) |
Returns a pointer to the FGTrim object.
Definition at line 1128 of file FGFDMExec.cpp.
|
inline |
Definition at line 537 of file FGFDMExec.h.
|
inline |
Definition at line 535 of file FGFDMExec.h.
|
inline |
Returns the FGWinds pointer.
Definition at line 357 of file FGFDMExec.h.
|
inline |
Pauses execution by preventing time from incrementing.
Definition at line 482 of file FGFDMExec.h.
|
inline |
Returns true if the simulation is Holding (i.e. simulation time is not moving).
Definition at line 490 of file FGFDMExec.h.
double JSBSim::FGFDMExec::IncrTime | ( | void | ) |
Increments the simulation time if not in Holding mode.
The Frame counter is also incremented.
Definition at line 221 of file FGFDMExec.cpp.
void JSBSim::FGFDMExec::Initialize | ( | FGInitialCondition * | FGIC | ) |
Initializes the simulation with initial conditions.
FGIC | The initial conditions that will be passed to the simulation. |
Definition at line 599 of file FGFDMExec.cpp.
|
inline |
Returns the simulation suspension state.
Definition at line 555 of file FGFDMExec.h.
bool JSBSim::FGFDMExec::LoadModel | ( | const SGPath & | AircraftPath, |
const SGPath & | EnginePath, | ||
const SGPath & | SystemsPath, | ||
const std::string & | model, | ||
bool | addModelToPath = true ) |
Loads an aircraft model.
AircraftPath | path to the aircraft/ directory. For instance: "aircraft". Under aircraft, then, would be directories for various modeled aircraft such as C172/, x15/, etc. |
EnginePath | path to the directory under which engine config files are kept, for instance "engine" |
SystemsPath | path to the directory under which systems config files are kept, for instance "systems" |
model | the name of the aircraft model itself. This file will be looked for in the directory specified in the AircraftPath variable, and in turn under the directory with the same name as the model. For instance: "aircraft/x15/x15.xml" |
addModelToPath | set to true to add the model name to the AircraftPath, defaults to true |
bool JSBSim::FGFDMExec::LoadModel | ( | const std::string & | model, |
bool | addModelToPath = true ) |
Loads an aircraft model.
The paths to the aircraft and engine config file directories must be set prior to calling this. See below.
model | the name of the aircraft model itself. This file will be looked for in the directory specified in the AircraftPath variable, and in turn under the directory with the same name as the model. For instance: "aircraft/x15/x15.xml" |
addModelToPath | set to true to add the model name to the AircraftPath, defaults to true |
bool JSBSim::FGFDMExec::LoadScript | ( | const SGPath & | Script, |
double | deltaT = 0.0, | ||
const SGPath & | initfile = SGPath() ) |
Load a script.
Script | The full path name and file name for the script to be loaded. |
deltaT | The simulation integration step size, if given. If no value is supplied then 0.0 is used and the value is expected to be supplied in the script file itself. |
initfile | The initialization file that will override the initialization file specified in the script file. If no file name is given on the command line, the file specified in the script will be used. If an initialization file is not given in either place, an error will result. |
Definition at line 658 of file FGFDMExec.cpp.
void JSBSim::FGFDMExec::PrintPropertyCatalog | ( | void | ) |
Definition at line 964 of file FGFDMExec.cpp.
void JSBSim::FGFDMExec::PrintSimulationConfiguration | ( | void | ) | const |
Definition at line 976 of file FGFDMExec.cpp.
string JSBSim::FGFDMExec::QueryPropertyCatalog | ( | const std::string & | check | ) |
Retrieves property or properties matching the supplied string.
A string is returned that contains a carriage return delimited list of all strings in the property catalog that matches the supplied check string.
check | The string to search for in the property catalog. |
Definition at line 952 of file FGFDMExec.cpp.
void JSBSim::FGFDMExec::ResetToInitialConditions | ( | int | mode | ) |
Resets the initial conditions object and prepares the simulation to run again.
If the mode's first bit is set the output instances will take special actions such as closing the current output file and open a new one with a different name. If the second bit is set then RunIC() won't be executed, leaving it to the caller to call RunIC(), e.g. in case the caller wants to set some other state like control surface deflections which would've been reset.
mode | Sets the reset mode. |
Definition at line 608 of file FGFDMExec.cpp.
|
inline |
Resumes execution from a "Hold".
Definition at line 488 of file FGFDMExec.h.
|
inline |
Resumes the simulation by resetting delta T to the correct value.
Definition at line 551 of file FGFDMExec.h.
bool JSBSim::FGFDMExec::Run | ( | void | ) |
This function executes each scheduled model in succession.
Definition at line 325 of file FGFDMExec.cpp.
bool JSBSim::FGFDMExec::RunIC | ( | void | ) |
Initializes the sim from the initial condition object and executes each scheduled model without integrating i.e.
dt=0.
Definition at line 560 of file FGFDMExec.cpp.
|
inline |
Set the path to the aircraft config file directories.
Under this path, then, would be directories for various modeled aircraft such as C172/, x15/, etc. Relative paths are taken from the root directory.
path | path to the aircraft directory, for instance "aircraft". |
Definition at line 323 of file FGFDMExec.h.
|
inline |
Marks this instance of the Exec object as a "child" object.
Definition at line 428 of file FGFDMExec.h.
|
inline |
Sets the debug level.
Definition at line 503 of file FGFDMExec.h.
|
inline |
Sets the integration time step for the simulation executive.
delta_t | the time step in seconds. |
Definition at line 564 of file FGFDMExec.h.
|
inline |
Set the path to the engine config file directories.
Relative paths are taken from the root directory.
path | path to the directory under which engine config files are kept, for instance "engine". |
Definition at line 311 of file FGFDMExec.h.
void JSBSim::FGFDMExec::SetHoldDown | ( | bool | hd | ) |
Sets the property forces/hold-down.
This allows to do hard 'hold-down' such as for rockets on a launch pad with engines ignited.
hd | enables the 'hold-down' function if non-zero |
Definition at line 629 of file FGFDMExec.cpp.
|
inline |
Sets the logging rate in Hz for all output objects (if any).
Definition at line 452 of file FGFDMExec.h.
|
inline |
Sets the output (logging) mechanism for this run.
Calling this function passes the name of an output directives file to the FGOutput object associated with this run. The call to this function should be made prior to loading an aircraft model. This call results in an FGOutput object being built as the first Output object in the FDMExec-managed list of Output objects that may be created for an aircraft model. If this call is made after an aircraft model is loaded, there is no effect. Any Output objects added by the aircraft model itself (in an <output> element) will be added after this one. Care should be taken not to refer to the same file name. An output directives file contains an <output> </output> element, within which should be specified the parameters or parameter groups that should be logged.
fname | the filename of an output directives file. |
Definition at line 445 of file FGFDMExec.h.
|
inline |
Sets (or overrides) the output filename.
n | index of file |
fname | the name of the file to output data to |
Definition at line 458 of file FGFDMExec.h.
|
inline |
Set the directory where the output files will be written.
Relative paths are taken from the root directory.
path | path to the directory under which the output files will be written. |
Definition at line 345 of file FGFDMExec.h.
|
inline |
Sets a property value.
property | the property to be set |
value | the value to set the property to |
Definition at line 412 of file FGFDMExec.h.
|
inline |
Set the root directory that is used to obtain absolute paths from relative paths.
Aircraft, engine, systems and output paths are not updated by this method. You must call each methods (SetAircraftPath(), SetEnginePath(), etc.) individually if you need to update these paths as well.
rootDir | the path to the root directory. |
Definition at line 578 of file FGFDMExec.h.
double JSBSim::FGFDMExec::Setsim_time | ( | double | cur_time | ) |
Sets the current sim time.
cur_time | the current time |
Definition at line 213 of file FGFDMExec.cpp.
|
inline |
Set the path to the systems config file directories.
Relative paths are taken from the root directory.
path | path to the directory under which systems config files are kept, for instance "systems" |
Definition at line 334 of file FGFDMExec.h.
|
inline |
Definition at line 536 of file FGFDMExec.h.
|
inline |
Definition at line 534 of file FGFDMExec.h.
|
inline |
Suspends the simulation and sets the delta T to zero.
Definition at line 548 of file FGFDMExec.h.
|
inline |
Unbind all tied JSBSim properties.
Definition at line 249 of file FGFDMExec.h.
|
static |
Definition at line 493 of file FGFDMExec.h.
|
static |
Mode flags for ResetToInitialConditions.
Definition at line 492 of file FGFDMExec.h.