FGJSBsim::FGJSBsim( double dt ) {
bool result;
- runcount=0;
-
fdmex=new FGFDMExec;
fgic=new FGInitialCondition(fdmex);
needTrim=true;
result = fdmex->LoadModel( aircraft_path.str(),
engine_path.str(),
fgGetString("/sim/aircraft") );
-#endif
if (result) {
FG_LOG( FG_FLIGHT, FG_INFO, " loaded aircraft " << fgGetString("/sim/aircraft") );
<< " does not exist" );
exit(-1);
}
-
+#endif
+
fdmex->GetAtmosphere()->UseInternal();
FG_LOG( FG_FLIGHT, FG_INFO, " Initializing JSBSim with:" );