2 #include "FGRotation.h"
3 #include "FGAtmosphere.h"
6 #include "FGAircraft.h"
7 #include "FGTranslation.h"
8 #include "FGPosition.h"
9 #include "FGAuxiliary.h"
15 void main(int argc, char** argv)
19 struct timespec short_wait = {0,100000000};
20 struct timespec no_wait = {0,100000000};
24 << " You must enter the name of a registered aircraft and reset point:"
25 << endl << endl << " FDM <aircraft name> <reset file>" << endl;
29 FDMExec = new FGFDMExec();
31 FDMExec->GetAircraft()->LoadAircraft(string(argv[1]));
32 FDMExec->GetState()->Reset(string(argv[2]));
34 while (FDMExec->GetState()->Getsim_time() <= 25.0)
37 nanosleep(&short_wait,&no_wait);