JSBSim Flight Dynamics Model  1.0 (02 March 2017)
An Open Source Flight Dynamics and Control Software Library in C++
JSBSim.minimal.cpp
1 #include <FGFDMExec.h>
2 
3 int main(int argc, char **argv)
4 {
5  JSBSim::FGFDMExec FDMExec;
6 
7  FDMExec.LoadScript(argv[1]);
8 
9  while (FDMExec.Run());
10 }
11 
bool LoadScript(const SGPath &Script, double deltaT=0.0, const SGPath &initfile=SGPath())
Loads a script.
Definition: FGFDMExec.cpp:653
bool Run(void)
This function executes each scheduled model in succession.
Definition: FGFDMExec.cpp:310
Encapsulates the JSBSim simulation executive.
Definition: FGFDMExec.h:189