]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGFDMExec.h
builddir -> srcdir so builds can be done outside the master source directory.
[flightgear.git] / src / FDM / JSBSim / FGFDMExec.h
index 8e6bdbfc0c3b1d8da912162259bd3c0e5888fcad..3bc11d3c176a09da5df279cfcc8bb841488b0e41 100644 (file)
@@ -26,6 +26,9 @@
 HISTORY
 --------------------------------------------------------------------------------
 11/17/98   JSB   Created
+7/31/99     TP   Added RunIC function that runs the sim so that every frame
+                 begins with the IC values from the given FGInitialCondition 
+                                  object and dt=0. 
 
 ********************************************************************************
 SENTRY
@@ -39,8 +42,7 @@ INCLUDES
 *******************************************************************************/
 
 #include "FGModel.h"
-
-using namespace std;
+#include "FGInitialCondition.h"
 
 /*******************************************************************************
 CLASS DECLARATION
@@ -55,18 +57,20 @@ class FGRotation;
 class FGPosition;
 class FGAuxiliary;
 class FGOutput;
+class FGInitialCondition;
 
 class FGFDMExec
 {
 public:
-  FGFDMExec(void);
-  ~FGFDMExec(void);
+  FGFDMExec::FGFDMExec(void);
+  FGFDMExec::~FGFDMExec(void);
 
   FGModel* FirstModel;
 
   bool Initialize(void);
   int  Schedule(FGModel* model, int rate);
   bool Run(void);
+  bool RunIC(FGInitialCondition *fgic); 
   void Freeze(void) {frozen = true;}
   void Resume(void) {frozen = false;}