]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGFDMExec.cpp
builddir -> srcdir so builds can be done outside the master source directory.
[flightgear.git] / src / FDM / JSBSim / FGFDMExec.cpp
index 942f045189ddca752eb0e2b314c9f490eaa25999..d5324fdd0d34d5595ee479a41126ad86d02d479f 100644 (file)
@@ -39,7 +39,7 @@ INCLUDES
 *******************************************************************************/
 
 #ifdef FGFS
-#  include <Include/compiler.h>
+#  include <simgear/compiler.h>
 #  ifdef FG_HAVE_STD_INCLUDES
 #    include <iostream>
 #    include <ctime>
@@ -112,14 +112,14 @@ FGFDMExec::FGFDMExec(void)
   // instance, the atmosphere model gets executed every fifth pass it is called
   // by the executive. Everything else here gets executed each pass.
 
-  Schedule(Atmosphere,  5);
+  Schedule(Atmosphere,  1);
   Schedule(FCS,         1);
   Schedule(Aircraft,    1);
   Schedule(Rotation,    1);
   Schedule(Translation, 1);
   Schedule(Position,    1);
   Schedule(Auxiliary,   1);
-  Schedule(Output,     60);
+  Schedule(Output,     1);
 
   terminate = false;
   frozen = false;
@@ -176,13 +176,16 @@ bool FGFDMExec::Run(void)
   return true;
 }
 
+
 bool FGFDMExec::RunIC(FGInitialCondition *fgic)
 {
-  float save_dt=State->Getdt();
+  float save_dt = State->Getdt();
+
   State->Setdt(0.0);
   State->Initialize(fgic);
   Run();
   State->Setdt(save_dt);
+
   return true;
 }