1 /*******************************************************************************
7 ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free Software
11 Foundation; either version 2 of the License, or (at your option) any later
14 This program is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19 You should have received a copy of the GNU General Public License along with
20 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21 Place - Suite 330, Boston, MA 02111-1307, USA.
23 Further information about the GNU General Public License can also be found on
24 the world wide web at http://www.gnu.org.
27 --------------------------------------------------------------------------------
29 7/31/99 TP Added RunIC function that runs the sim so that every frame
30 begins with the IC values from the given FGInitialCondition
33 ********************************************************************************
35 *******************************************************************************/
37 #ifndef FGFDMEXEC_HEADER_H
38 #define FGFDMEXEC_HEADER_H
40 /*******************************************************************************
42 *******************************************************************************/
45 #include "FGInitialCondition.h"
47 /*******************************************************************************
49 *******************************************************************************/
60 class FGInitialCondition;
70 bool Initialize(void);
71 int Schedule(FGModel* model, int rate);
73 bool RunIC(FGInitialCondition *fgic);
74 void Freeze(void) {frozen = true;}
75 void Resume(void) {frozen = false;}
77 bool SetEnginePath(string path) {EnginePath = path;}
78 bool SetAircraftPath(string path) {AircraftPath = path;}
79 bool SetScriptPath(string path) {ScriptPath = path;}
81 bool LoadModel(string AircraftPath, string EnginePath, string model);
82 bool RunScript(string script);
84 inline FGState* GetState(void) {return State;}
85 inline FGAtmosphere* GetAtmosphere(void) {return Atmosphere;}
86 inline FGFCS* GetFCS(void) {return FCS;}
87 inline FGAircraft* GetAircraft(void) {return Aircraft;}
88 inline FGTranslation* GetTranslation(void) {return Translation;}
89 inline FGRotation* GetRotation(void) {return Rotation;}
90 inline FGPosition* GetPosition(void) {return Position;}
91 inline FGAuxiliary* GetAuxiliary(void) {return Auxiliary;}
92 inline FGOutput* GetOutput(void) {return Output;}
107 FGAtmosphere* Atmosphere;
109 FGAircraft* Aircraft;
110 FGTranslation* Translation;
111 FGRotation* Rotation;
112 FGPosition* Position;
113 FGAuxiliary* Auxiliary;
119 /******************************************************************************/