Sync. with JSBSim CVS (header cleanups).
This commit is contained in:
parent
b19a270d54
commit
3b3f671974
52 changed files with 185 additions and 598 deletions
|
@ -41,19 +41,6 @@ COMMENTS, REFERENCES, and NOTES
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# include STL_IOSTREAM
|
|
||||||
# include STL_ITERATOR
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iostream.h>
|
|
||||||
# else
|
|
||||||
# include <iostream>
|
|
||||||
# endif
|
|
||||||
# include <iterator>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGFDMExec.h"
|
#include "FGFDMExec.h"
|
||||||
#include "FGState.h"
|
#include "FGState.h"
|
||||||
#include <models/FGAtmosphere.h>
|
#include <models/FGAtmosphere.h>
|
||||||
|
@ -77,6 +64,9 @@ INCLUDES
|
||||||
#include <input_output/FGPropertyManager.h>
|
#include <input_output/FGPropertyManager.h>
|
||||||
#include <input_output/FGScript.h>
|
#include <input_output/FGScript.h>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
static const char *IdSrc = "$Id$";
|
static const char *IdSrc = "$Id$";
|
||||||
|
|
|
@ -68,6 +68,7 @@ FORWARD DECLARATIONS
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
class FGScript;
|
class FGScript;
|
||||||
|
class FGTrim;
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
CLASS DOCUMENTATION
|
CLASS DOCUMENTATION
|
||||||
|
|
|
@ -36,16 +36,7 @@ HISTORY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <cmath>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# include <math.h>
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGState.h"
|
#include "FGState.h"
|
||||||
|
|
||||||
|
|
|
@ -41,21 +41,7 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <fstream>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <fstream>
|
|
||||||
# else
|
|
||||||
# include <fstream.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <fstream.h>
|
|
||||||
# else
|
|
||||||
# include <fstream>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include "FGJSBBase.h"
|
#include "FGJSBBase.h"
|
||||||
|
|
|
@ -42,21 +42,6 @@ you have chosen your IC's wisely) even after setting it up with this class.
|
||||||
INCLUDES
|
INCLUDES
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <fstream>
|
|
||||||
# else
|
|
||||||
# include <fstream.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <fstream.h>
|
|
||||||
# else
|
|
||||||
# include <fstream>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGInitialCondition.h"
|
#include "FGInitialCondition.h"
|
||||||
#include <FGFDMExec.h>
|
#include <FGFDMExec.h>
|
||||||
#include <models/FGInertial.h>
|
#include <models/FGInertial.h>
|
||||||
|
@ -66,8 +51,8 @@ INCLUDES
|
||||||
#include <input_output/FGPropertyManager.h>
|
#include <input_output/FGPropertyManager.h>
|
||||||
#include <models/FGPropulsion.h>
|
#include <models/FGPropulsion.h>
|
||||||
#include <input_output/FGXMLParse.h>
|
#include <input_output/FGXMLParse.h>
|
||||||
|
|
||||||
#include <math/FGQuaternion.h>
|
#include <math/FGQuaternion.h>
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,10 @@
|
||||||
Further information about the GNU Lesser General Public License can also be found on
|
Further information about the GNU Lesser General Public License can also be found on
|
||||||
the world wide web at http://www.gnu.org.
|
the world wide web at http://www.gnu.org.
|
||||||
|
|
||||||
|
|
||||||
HISTORY
|
HISTORY
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
9/8/99 TP Created
|
9/8/99 TP Created
|
||||||
|
|
||||||
|
|
||||||
FUNCTIONAL DESCRIPTION
|
FUNCTIONAL DESCRIPTION
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -43,12 +41,10 @@ scheme. */
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
#include "FGTrim.h"
|
||||||
#include <FGFDMExec.h>
|
|
||||||
#include <models/FGAtmosphere.h>
|
#include <models/FGAtmosphere.h>
|
||||||
#include "FGInitialCondition.h"
|
#include "FGInitialCondition.h"
|
||||||
#include "FGTrim.h"
|
|
||||||
#include <models/FGAircraft.h>
|
#include <models/FGAircraft.h>
|
||||||
#include <models/FGMassBalance.h>
|
#include <models/FGMassBalance.h>
|
||||||
#include <models/FGGroundReactions.h>
|
#include <models/FGGroundReactions.h>
|
||||||
|
|
|
@ -37,8 +37,7 @@ INCLUDES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include <FGFDMExec.h>
|
#include <FGFDMExec.h>
|
||||||
#include <models/FGAtmosphere.h>
|
#include <models/FGAtmosphere.h>
|
||||||
#include "FGInitialCondition.h"
|
#include "FGInitialCondition.h"
|
||||||
|
@ -47,7 +46,6 @@ INCLUDES
|
||||||
#include <models/FGPropulsion.h>
|
#include <models/FGPropulsion.h>
|
||||||
#include <models/FGAerodynamics.h>
|
#include <models/FGAerodynamics.h>
|
||||||
|
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
static const char *IdSrc = "$Id$";
|
static const char *IdSrc = "$Id$";
|
||||||
|
|
|
@ -63,12 +63,7 @@ string FGPropertyManager::mkPropertyName(string name, bool lowercase) {
|
||||||
else if( isspace(name[i]) )
|
else if( isspace(name[i]) )
|
||||||
name[i]='-';
|
name[i]='-';
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
for(i=0;i<name.length();i++) {
|
|
||||||
if( name[i] == '/' )
|
|
||||||
name.erase(i,1);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,11 +37,7 @@ INCLUDES
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#ifdef FGFS
|
#include "simgear/props/props.hxx"
|
||||||
# include <simgear/props/props.hxx>
|
|
||||||
#else
|
|
||||||
# include "simgear/props/props.hxx"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGJSBBase.h"
|
#include "FGJSBBase.h"
|
||||||
|
|
||||||
|
|
|
@ -41,23 +41,13 @@ COMMENTS, REFERENCES, and NOTES
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# include STL_IOSTREAM
|
|
||||||
# include STL_ITERATOR
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iostream.h>
|
|
||||||
# else
|
|
||||||
# include <iostream>
|
|
||||||
# endif
|
|
||||||
# include <iterator>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGScript.h"
|
#include "FGScript.h"
|
||||||
#include <input_output/FGXMLParse.h>
|
#include <input_output/FGXMLParse.h>
|
||||||
#include <initialization/FGTrim.h>
|
#include <initialization/FGTrim.h>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
static const char *IdSrc = "$Id$";
|
static const char *IdSrc = "$Id$";
|
||||||
|
|
|
@ -29,29 +29,9 @@ INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include "FGXMLElement.h"
|
#include "FGXMLElement.h"
|
||||||
#ifdef FGFS
|
|
||||||
# ifndef __BORLANDC__
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# endif
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <cmath>
|
|
||||||
# include <cstdlib>
|
|
||||||
# else
|
|
||||||
# include <math.h>
|
|
||||||
# include <stdlib.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined (sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# include <stdlib.h>
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# include <cstdlib>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cmath>
|
||||||
#include <math.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
FORWARD DECLARATIONS
|
FORWARD DECLARATIONS
|
||||||
|
|
|
@ -34,35 +34,16 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <string>
|
||||||
# include <simgear/compiler.h>
|
#include <map>
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
#include <iostream>
|
||||||
# include <string>
|
#include <vector>
|
||||||
# include <vector>
|
|
||||||
# include <iostream>
|
using std::string;
|
||||||
# include <map>
|
using std::map;
|
||||||
# else
|
using std::vector;
|
||||||
# include <vector.h>
|
using std::cout;
|
||||||
# include <string>
|
using std::endl;
|
||||||
# include <iostream.h>
|
|
||||||
# include <map.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
# include <map>
|
|
||||||
# include <iostream>
|
|
||||||
# include <vector>
|
|
||||||
using std::string;
|
|
||||||
using std::map;
|
|
||||||
using std::vector;
|
|
||||||
using std::cout;
|
|
||||||
using std::endl;
|
|
||||||
#endif
|
|
||||||
using std::string;
|
|
||||||
using std::map;
|
|
||||||
using std::vector;
|
|
||||||
using std::cout;
|
|
||||||
using std::endl;
|
|
||||||
|
|
||||||
#include <math/FGColumnVector3.h>
|
#include <math/FGColumnVector3.h>
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include "FGXMLParse.h"
|
#include "FGXMLParse.h"
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
|
|
|
@ -34,17 +34,13 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <string>
|
||||||
# include <simgear/compiler.h>
|
#include <iostream>
|
||||||
# include STL_STRING
|
|
||||||
#else
|
using std::string;
|
||||||
# include <string>
|
using std::cout;
|
||||||
# include <iostream>
|
using std::cerr;
|
||||||
using std::string;
|
using std::endl;
|
||||||
using std::cout;
|
|
||||||
using std::cerr;
|
|
||||||
using std::endl;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGXMLElement.h"
|
#include "FGXMLElement.h"
|
||||||
#include "simgear/xml/easyxml.hxx"
|
#include "simgear/xml/easyxml.hxx"
|
||||||
|
|
|
@ -39,31 +39,16 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
#include <string>
|
||||||
#ifdef FGFS
|
#include <iostream>
|
||||||
# include <simgear/compiler.h>
|
#include <fstream>
|
||||||
# include STL_STRING
|
|
||||||
# include STL_IOSTREAM
|
|
||||||
# include STL_FSTREAM
|
|
||||||
SG_USING_STD(cout);
|
|
||||||
SG_USING_STD(endl);
|
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iostream.h>
|
|
||||||
# include <fstream.h>
|
|
||||||
# else
|
|
||||||
# include <iostream>
|
|
||||||
# include <fstream>
|
|
||||||
using std::cout;
|
|
||||||
using std::endl;
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "FGJSBBase.h"
|
#include "FGJSBBase.h"
|
||||||
|
|
||||||
|
using std::cout;
|
||||||
|
using std::endl;
|
||||||
|
|
||||||
#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
|
#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
@ -77,9 +62,7 @@ INCLUDES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
# pragma comment (lib,"WSock32.lib")
|
||||||
#pragma comment (lib,"WSock32.lib")
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
|
@ -38,7 +38,7 @@ INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include "FGColumnVector3.h"
|
#include "FGColumnVector3.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
|
|
|
@ -39,44 +39,19 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#ifdef FGFS
|
#include <string>
|
||||||
# include <math.h>
|
#include <fstream>
|
||||||
# include <simgear/compiler.h>
|
#include <iostream>
|
||||||
# include STL_STRING
|
#include <cmath>
|
||||||
# include STL_FSTREAM
|
|
||||||
# include STL_IOSTREAM
|
using std::ostream;
|
||||||
SG_USING_STD(string);
|
using std::istream;
|
||||||
SG_USING_STD(ostream);
|
using std::cerr;
|
||||||
SG_USING_STD(istream);
|
using std::cout;
|
||||||
SG_USING_STD(cerr);
|
using std::endl;
|
||||||
SG_USING_STD(cout);
|
using std::sqrt;
|
||||||
SG_USING_STD(endl);
|
using std::string;
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <fstream.h>
|
|
||||||
# include <iostream.h>
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <fstream>
|
|
||||||
# include <iostream>
|
|
||||||
# if defined(sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# if !(defined(_MSC_VER) && _MSC_VER <= 1200)
|
|
||||||
using std::sqrt;
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
using std::ostream;
|
|
||||||
using std::istream;
|
|
||||||
using std::cerr;
|
|
||||||
using std::cout;
|
|
||||||
using std::endl;
|
|
||||||
# endif
|
|
||||||
using std::string;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGJSBBase.h"
|
#include "FGJSBBase.h"
|
||||||
|
|
||||||
|
|
|
@ -38,20 +38,7 @@ HISTORY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <cmath>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <cmath>
|
|
||||||
# else
|
|
||||||
# include <math.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGLocation.h"
|
#include "FGLocation.h"
|
||||||
#include <input_output/FGPropertyManager.h>
|
#include <input_output/FGPropertyManager.h>
|
||||||
|
|
|
@ -40,41 +40,18 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#ifdef FGFS
|
#include <string>
|
||||||
# include <math.h>
|
#include <fstream>
|
||||||
# include <simgear/compiler.h>
|
#include <iostream>
|
||||||
# include STL_STRING
|
#include <cmath>
|
||||||
# include STL_FSTREAM
|
|
||||||
# include STL_IOSTREAM
|
using std::ostream;
|
||||||
SG_USING_STD(string);
|
using std::istream;
|
||||||
SG_USING_STD(ostream);
|
using std::cerr;
|
||||||
SG_USING_STD(istream);
|
using std::cout;
|
||||||
SG_USING_STD(cerr);
|
using std::endl;
|
||||||
SG_USING_STD(cout);
|
using std::string;
|
||||||
SG_USING_STD(endl);
|
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
include <fstream.h>
|
|
||||||
include <iostream.h>
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <fstream>
|
|
||||||
# include <iostream>
|
|
||||||
# if defined(sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# endif
|
|
||||||
using std::ostream;
|
|
||||||
using std::istream;
|
|
||||||
using std::cerr;
|
|
||||||
using std::cout;
|
|
||||||
using std::endl;
|
|
||||||
# endif
|
|
||||||
using std::string;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGColumnVector3.h"
|
#include "FGColumnVector3.h"
|
||||||
#include "FGJSBBase.h"
|
#include "FGJSBBase.h"
|
||||||
|
|
|
@ -38,30 +38,12 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <string>
|
||||||
# include <math.h>
|
#include <iostream>
|
||||||
# include <simgear/compiler.h>
|
#include <cmath>
|
||||||
# include STL_IOSTREAM
|
using std::cerr;
|
||||||
SG_USING_STD(cerr);
|
using std::cout;
|
||||||
SG_USING_STD(cout);
|
using std::endl;
|
||||||
SG_USING_STD(endl);
|
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iostream.h>
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <iostream>
|
|
||||||
# if defined(sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# endif
|
|
||||||
using std::cerr;
|
|
||||||
using std::cout;
|
|
||||||
using std::endl;
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGMatrix33.h"
|
#include "FGMatrix33.h"
|
||||||
#include "FGColumnVector3.h"
|
#include "FGColumnVector3.h"
|
||||||
|
|
|
@ -37,12 +37,7 @@ INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#include "FGTable.h"
|
#include "FGTable.h"
|
||||||
|
#include <iomanip>
|
||||||
#if defined ( sgi ) && !defined( __GNUC__ ) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iomanip.h>
|
|
||||||
#else
|
|
||||||
# include <iomanip>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
|
@ -38,19 +38,8 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <vector>
|
||||||
# include <simgear/compiler.h>
|
#include <map>
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# include <map>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# include <map.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
# include <map>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
#include <math/FGFunction.h>
|
#include <math/FGFunction.h>
|
||||||
|
|
|
@ -41,22 +41,7 @@ INCLUDES
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <cmath>
|
||||||
# ifndef __BORLANDC__
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# endif
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <cmath>
|
|
||||||
# else
|
|
||||||
# include <math.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined (sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGAircraft.h"
|
#include "FGAircraft.h"
|
||||||
#include "FGMassBalance.h"
|
#include "FGMassBalance.h"
|
||||||
|
|
|
@ -38,16 +38,7 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <vector>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
|
|
@ -64,7 +64,6 @@ static const char *IdHdr = ID_ATMOSPHERE;
|
||||||
CLASS IMPLEMENTATION
|
CLASS IMPLEMENTATION
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
|
|
||||||
FGAtmosphere::FGAtmosphere(FGFDMExec* fdmex) : FGModel(fdmex)
|
FGAtmosphere::FGAtmosphere(FGFDMExec* fdmex) : FGModel(fdmex)
|
||||||
{
|
{
|
||||||
Name = "FGAtmosphere";
|
Name = "FGAtmosphere";
|
||||||
|
|
|
@ -39,19 +39,8 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <vector>
|
||||||
# include <simgear/compiler.h>
|
#include <map>
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# include <map>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# include <map.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
# include <map>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
#include "FGGasCell.h"
|
#include "FGGasCell.h"
|
||||||
|
|
|
@ -38,10 +38,6 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
#include "FGExternalForce.h"
|
#include "FGExternalForce.h"
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
|
|
@ -38,16 +38,7 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <vector>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <models/flight_control/FGFCSComponent.h>
|
#include <models/flight_control/FGFCSComponent.h>
|
||||||
|
|
|
@ -42,11 +42,9 @@ INCLUDES
|
||||||
#include <models/FGMassBalance.h>
|
#include <models/FGMassBalance.h>
|
||||||
#include "FGGasCell.h"
|
#include "FGGasCell.h"
|
||||||
|
|
||||||
#if !defined ( sgi ) || defined( __GNUC__ ) && (_COMPILER_VERSION < 740)
|
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
using std::cout;
|
using std::cout;
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
|
|
|
@ -45,22 +45,11 @@ INCLUDES
|
||||||
#include <models/propulsion/FGForce.h>
|
#include <models/propulsion/FGForce.h>
|
||||||
#include <math/FGFunction.h>
|
#include <math/FGFunction.h>
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <string>
|
||||||
# include <simgear/compiler.h>
|
using std::string;
|
||||||
# include STL_STRING
|
using std::cerr;
|
||||||
SG_USING_STD(string);
|
using std::endl;
|
||||||
SG_USING_STD(cerr);
|
using std::cout;
|
||||||
SG_USING_STD(endl);
|
|
||||||
SG_USING_STD(cout);
|
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
using std::string;
|
|
||||||
# if !defined(sgi) || defined(__GNUC__) || (_COMPILER_VERSION >= 740)
|
|
||||||
using std::cerr;
|
|
||||||
using std::endl;
|
|
||||||
using std::cout;
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
DEFINITIONS
|
DEFINITIONS
|
||||||
|
|
|
@ -38,16 +38,7 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <vector>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
#include "FGLGear.h"
|
#include "FGLGear.h"
|
||||||
|
|
|
@ -38,16 +38,7 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <vector>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
#include <math/FGColumnVector3.h>
|
#include <math/FGColumnVector3.h>
|
||||||
|
|
|
@ -40,19 +40,8 @@ INCLUDES
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <iostream>
|
||||||
# include <simgear/compiler.h>
|
#include <fstream>
|
||||||
# include STL_IOSTREAM
|
|
||||||
# include STL_FSTREAM
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iostream.h>
|
|
||||||
# include <fstream.h>
|
|
||||||
# else
|
|
||||||
# include <iostream>
|
|
||||||
# include <fstream>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <input_output/FGfdmSocket.h>
|
#include <input_output/FGfdmSocket.h>
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
|
|
@ -38,10 +38,6 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <FGJSBBase.h>
|
#include <FGJSBBase.h>
|
||||||
#include <FGFDMExec.h>
|
#include <FGFDMExec.h>
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
|
|
@ -42,21 +42,7 @@ INCLUDES
|
||||||
#include <input_output/FGPropertyManager.h>
|
#include <input_output/FGPropertyManager.h>
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <iostream>
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <iostream>
|
|
||||||
# else
|
|
||||||
# include <iostream.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iostream.h>
|
|
||||||
# else
|
|
||||||
# include <iostream>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
|
@ -68,7 +68,6 @@ INCLUDES
|
||||||
static const int endianTest = 1;
|
static const int endianTest = 1;
|
||||||
#define isLittleEndian (*((char *) &endianTest ) != 0)
|
#define isLittleEndian (*((char *) &endianTest ) != 0)
|
||||||
|
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
static const char *IdSrc = "$Id$";
|
static const char *IdSrc = "$Id$";
|
||||||
|
|
|
@ -41,19 +41,8 @@ INCLUDES
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <iostream>
|
||||||
# include <simgear/compiler.h>
|
#include <fstream>
|
||||||
# include STL_IOSTREAM
|
|
||||||
# include STL_FSTREAM
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <iostream.h>
|
|
||||||
# include <fstream.h>
|
|
||||||
# else
|
|
||||||
# include <iostream>
|
|
||||||
# include <fstream>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "input_output/FGfdmSocket.h"
|
#include "input_output/FGfdmSocket.h"
|
||||||
#include "input_output/FGXMLFileRead.h"
|
#include "input_output/FGXMLFileRead.h"
|
||||||
|
|
|
@ -53,28 +53,8 @@ COMMENTS, REFERENCES, and NOTES
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <cmath>
|
||||||
# include <simgear/compiler.h>
|
#include <iomanip>
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <cmath>
|
|
||||||
# include <iomanip>
|
|
||||||
# else
|
|
||||||
# include <math.h>
|
|
||||||
# include <iomanip.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__)
|
|
||||||
# include <math.h>
|
|
||||||
# if (_COMPILER_VERSION < 740)
|
|
||||||
# include <iomanip.h>
|
|
||||||
# else
|
|
||||||
# include <iomanip>
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
# include <cmath>
|
|
||||||
# include <iomanip>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGPropagate.h"
|
#include "FGPropagate.h"
|
||||||
#include <FGState.h>
|
#include <FGState.h>
|
||||||
|
|
|
@ -167,16 +167,16 @@ bool FGPropulsion::Run(void)
|
||||||
|
|
||||||
bool FGPropulsion::GetSteadyState(void)
|
bool FGPropulsion::GetSteadyState(void)
|
||||||
{
|
{
|
||||||
double currentThrust = 0, lastThrust=-1;
|
double currentThrust = 0, lastThrust = -1;
|
||||||
int steady_count,j=0;
|
int steady_count = 0, j = 0;
|
||||||
bool steady=false;
|
bool steady = false;
|
||||||
|
|
||||||
vForces.InitMatrix();
|
vForces.InitMatrix();
|
||||||
vMoments.InitMatrix();
|
vMoments.InitMatrix();
|
||||||
|
|
||||||
if (!FGModel::Run()) {
|
if (!FGModel::Run()) {
|
||||||
for (unsigned int i=0; i<numEngines; i++) {
|
for (unsigned int i=0; i<numEngines; i++) {
|
||||||
cout << " Finding steady state for engine " << i << endl;
|
// cout << " Finding steady state for engine " << i << endl;
|
||||||
Engines[i]->SetTrimMode(true);
|
Engines[i]->SetTrimMode(true);
|
||||||
steady=false;
|
steady=false;
|
||||||
steady_count=0;
|
steady_count=0;
|
||||||
|
@ -189,16 +189,16 @@ bool FGPropulsion::GetSteadyState(void)
|
||||||
steady_count++;
|
steady_count++;
|
||||||
if (steady_count > 120) {
|
if (steady_count > 120) {
|
||||||
steady=true;
|
steady=true;
|
||||||
cout << " Steady state found at thrust: " << currentThrust << " lbs." << endl;
|
// cout << " Steady state found at thrust: " << currentThrust << " lbs." << endl;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
steady_count=0;
|
steady_count=0;
|
||||||
}
|
}
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
if (j >= 6000) {
|
// if (j >= 6000) {
|
||||||
cout << " Could not find a steady state for this engine." << endl;
|
// cout << " Could not find a steady state for this engine." << endl;
|
||||||
}
|
// }
|
||||||
vForces += Engines[i]->GetBodyForces(); // sum body frame forces
|
vForces += Engines[i]->GetBodyForces(); // sum body frame forces
|
||||||
vMoments += Engines[i]->GetMoments(); // sum body frame moments
|
vMoments += Engines[i]->GetMoments(); // sum body frame moments
|
||||||
Engines[i]->SetTrimMode(false);
|
Engines[i]->SetTrimMode(false);
|
||||||
|
|
|
@ -38,19 +38,8 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
#include <vector>
|
||||||
# include <simgear/compiler.h>
|
#include <fstream>
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# include <fstream>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# include <fstream.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
# include <fstream>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGModel.h"
|
#include "FGModel.h"
|
||||||
#include <models/propulsion/FGEngine.h>
|
#include <models/propulsion/FGEngine.h>
|
||||||
|
|
|
@ -37,15 +37,11 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <FGJSBBase.h>
|
#include <FGJSBBase.h>
|
||||||
#include <input_output/FGPropertyManager.h>
|
#include <input_output/FGPropertyManager.h>
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
DEFINITIONS
|
DEFINITIONS
|
||||||
|
@ -54,6 +50,7 @@ DEFINITIONS
|
||||||
#define ID_FCSCOMPONENT "$Id$"
|
#define ID_FCSCOMPONENT "$Id$"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
using std::vector;
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
FORWARD DECLARATIONS
|
FORWARD DECLARATIONS
|
||||||
|
|
|
@ -37,18 +37,13 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# include STL_STRING
|
|
||||||
SG_USING_STD(string);
|
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGFCSComponent.h"
|
#include "FGFCSComponent.h"
|
||||||
|
#include <string>
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
#include <math/FGTable.h>
|
#include <math/FGTable.h>
|
||||||
|
|
||||||
|
using std::string;
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
DEFINITIONS
|
DEFINITIONS
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
|
@ -37,11 +37,10 @@ COMMENTS, REFERENCES, and NOTES
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
|
#include "FGKinemat.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
#include "FGKinemat.h"
|
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
static const char *IdSrc = "$Id$";
|
static const char *IdSrc = "$Id$";
|
||||||
|
|
|
@ -37,20 +37,13 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include "FGFCSComponent.h"
|
#include "FGFCSComponent.h"
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
using std::vector;
|
||||||
|
using std::string;
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
DEFINITIONS
|
DEFINITIONS
|
||||||
|
|
|
@ -101,9 +101,6 @@ FGPID::FGPID(FGFCS* fcs, Element* element) : FGFCSComponent(fcs, element)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (element->FindElement("kp")) Kp = element->FindElementValueAsNumber("kp");
|
|
||||||
//if (element->FindElement("ki")) Ki = element->FindElementValueAsNumber("ki");
|
|
||||||
//if (element->FindElement("kd")) Kd = element->FindElementValueAsNumber("kd");
|
|
||||||
if (element->FindElement("trigger")) {
|
if (element->FindElement("trigger")) {
|
||||||
Trigger = PropertyManager->GetNode(element->FindElementValue("trigger"));
|
Trigger = PropertyManager->GetNode(element->FindElementValue("trigger"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,16 +38,9 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# include STL_STRING
|
|
||||||
SG_USING_STD(string);
|
|
||||||
#else
|
|
||||||
# include <string>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGFCSComponent.h"
|
#include "FGFCSComponent.h"
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
DEFINITIONS
|
DEFINITIONS
|
||||||
|
@ -55,6 +48,10 @@ DEFINITIONS
|
||||||
|
|
||||||
#define ID_PID "$Id$"
|
#define ID_PID "$Id$"
|
||||||
|
|
||||||
|
using std::string;
|
||||||
|
|
||||||
|
using std::string;
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
FORWARD DECLARATIONS
|
FORWARD DECLARATIONS
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
|
@ -37,20 +37,10 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include "FGFCSComponent.h"
|
#include "FGFCSComponent.h"
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
DEFINITIONS
|
DEFINITIONS
|
||||||
|
@ -58,6 +48,12 @@ DEFINITIONS
|
||||||
|
|
||||||
#define ID_SUMMER "$Id$"
|
#define ID_SUMMER "$Id$"
|
||||||
|
|
||||||
|
using std::vector;
|
||||||
|
using std::string;
|
||||||
|
|
||||||
|
using std::vector;
|
||||||
|
using std::string;
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
FORWARD DECLARATIONS
|
FORWARD DECLARATIONS
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
|
@ -37,27 +37,13 @@ HISTORY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <fstream>
|
|
||||||
# else
|
|
||||||
# include <fstream.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
|
|
||||||
# include <fstream.h>
|
|
||||||
# else
|
|
||||||
# include <fstream>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "FGEngine.h"
|
#include "FGEngine.h"
|
||||||
#include "FGTank.h"
|
#include "FGTank.h"
|
||||||
#include "FGPropeller.h"
|
#include "FGPropeller.h"
|
||||||
#include "FGNozzle.h"
|
#include "FGNozzle.h"
|
||||||
#include <input_output/FGXMLParse.h>
|
#include <input_output/FGXMLParse.h>
|
||||||
#include <math/FGColumnVector3.h>
|
#include <math/FGColumnVector3.h>
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
|
|
|
@ -43,24 +43,12 @@ SENTRY
|
||||||
INCLUDES
|
INCLUDES
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
# include STL_STRING
|
|
||||||
SG_USING_STD(string);
|
|
||||||
# ifdef SG_HAVE_STD_INCLUDES
|
|
||||||
# include <vector>
|
|
||||||
# else
|
|
||||||
# include <vector.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# include <vector>
|
|
||||||
# include <string>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <FGJSBBase.h>
|
#include <FGJSBBase.h>
|
||||||
#include "FGThruster.h"
|
#include "FGThruster.h"
|
||||||
#include <input_output/FGPropertyManager.h>
|
#include <input_output/FGPropertyManager.h>
|
||||||
#include <input_output/FGXMLFileRead.h>
|
#include <input_output/FGXMLFileRead.h>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
DEFINITIONS
|
DEFINITIONS
|
||||||
|
|
|
@ -167,16 +167,16 @@ FGPiston::FGPiston(FGFDMExec* exec, Element* el, int engine_number)
|
||||||
/*
|
/*
|
||||||
Manifold_Pressure_Lookup = new
|
Manifold_Pressure_Lookup = new
|
||||||
|
|
||||||
0 0.2 0.4 0.6 0.8 1
|
0 0.2 0.4 0.6 0.8 1
|
||||||
0 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000
|
0 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000
|
||||||
1000 0.7778 0.8212 0.8647 0.9081 0.9516 0.9950
|
1000 0.7778 0.8212 0.8647 0.9081 0.9516 0.9950
|
||||||
2000 0.5556 0.6424 0.7293 0.8162 0.9031 0.9900
|
2000 0.5556 0.6424 0.7293 0.8162 0.9031 0.9900
|
||||||
3000 0.3333 0.4637 0.5940 0.7243 0.8547 0.9850
|
3000 0.3333 0.4637 0.5940 0.7243 0.8547 0.9850
|
||||||
4000 0.2000 0.2849 0.4587 0.6324 0.8062 0.9800
|
4000 0.2000 0.2849 0.4587 0.6324 0.8062 0.9800
|
||||||
5000 0.2000 0.2000 0.3233 0.5406 0.7578 0.9750
|
5000 0.2000 0.2000 0.3233 0.5406 0.7578 0.9750
|
||||||
6000 0.2000 0.2000 0.2000 0.4487 0.7093 0.9700
|
6000 0.2000 0.2000 0.2000 0.4487 0.7093 0.9700
|
||||||
7000 0.2000 0.2000 0.2000 0.2000 0.4570 0.7611
|
7000 0.2000 0.2000 0.2000 0.2000 0.4570 0.7611
|
||||||
8000 0.2000 0.2000 0.2000 0.2000 0.2047 0.5522
|
8000 0.2000 0.2000 0.2000 0.2000 0.2047 0.5522
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Read inputs from engine data file where present.
|
// Read inputs from engine data file where present.
|
||||||
|
@ -513,8 +513,8 @@ void FGPiston::doBoostControl(void)
|
||||||
|
|
||||||
void FGPiston::doMAP(void)
|
void FGPiston::doMAP(void)
|
||||||
{
|
{
|
||||||
suction_loss = pow( ThrottlePos*0.98, RPM/MaxRPM );
|
suction_loss = pow( ThrottlePos*0.98, RPM/MaxRPM );
|
||||||
MAP = p_amb * suction_loss;
|
MAP = p_amb * suction_loss;
|
||||||
|
|
||||||
if(Boosted) {
|
if(Boosted) {
|
||||||
// If takeoff boost is fitted, we currently assume the following throttle map:
|
// If takeoff boost is fitted, we currently assume the following throttle map:
|
||||||
|
@ -599,10 +599,10 @@ void FGPiston::doFuelFlow(void)
|
||||||
double AFR = 10+(12*(1-Mixture));// mixture 10:1 to 22:1
|
double AFR = 10+(12*(1-Mixture));// mixture 10:1 to 22:1
|
||||||
m_dot_fuel = m_dot_air / AFR;
|
m_dot_fuel = m_dot_air / AFR;
|
||||||
FuelFlow_gph = m_dot_fuel
|
FuelFlow_gph = m_dot_fuel
|
||||||
* 3600 // seconds to hours
|
* 3600 // seconds to hours
|
||||||
* 2.2046 // kg to lb
|
* 2.2046 // kg to lb
|
||||||
/ 6.0; // lb to gal_us of gasoline
|
/ 6.0; // lb to gal_us of gasoline
|
||||||
// / 6.6; // lb to gal_us of kerosene
|
// / 6.6; // lb to gal_us of kerosene
|
||||||
}
|
}
|
||||||
|
|
||||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
@ -627,15 +627,14 @@ void FGPiston::doEnginePower(void)
|
||||||
double T_amb_sea_lev_degF = KelvinToFahrenheit(288);
|
double T_amb_sea_lev_degF = KelvinToFahrenheit(288);
|
||||||
|
|
||||||
// FIXME: this needs to be generalized
|
// FIXME: this needs to be generalized
|
||||||
double ManXRPM, ME, Adjusted_BSFC; // Convienience term for use in the calculations
|
double ME, Adjusted_BSFC; // Convienience term for use in the calculations
|
||||||
ME = Mixture_Efficiency_Correlation->GetValue(m_dot_fuel/m_dot_air);
|
ME = Mixture_Efficiency_Correlation->GetValue(m_dot_fuel/m_dot_air);
|
||||||
Adjusted_BSFC = (1/ThrottlePos) * BSFC;
|
Adjusted_BSFC = (1/ThrottlePos) * BSFC;
|
||||||
Percentage_Power = 1.000;
|
Percentage_Power = 1.000;
|
||||||
|
|
||||||
if( Magnetos != 3 )
|
if ( Magnetos != 3 ) Percentage_Power *= SparkFailDrop;
|
||||||
Percentage_Power *= SparkFailDrop;
|
|
||||||
|
|
||||||
HP = (FuelFlow_gph * 6.0 / Adjusted_BSFC )* ME * suction_loss * Percentage_Power;
|
HP = (FuelFlow_gph * 6.0 / Adjusted_BSFC )* ME * suction_loss * Percentage_Power;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -775,7 +774,7 @@ void FGPiston::doOilPressure(void)
|
||||||
{
|
{
|
||||||
double Oil_Press_Relief_Valve = 60; // FIXME: may vary by engine
|
double Oil_Press_Relief_Valve = 60; // FIXME: may vary by engine
|
||||||
double Oil_Press_RPM_Max = MaxRPM * 0.75; // 75% of max rpm FIXME: may vary by engine
|
double Oil_Press_RPM_Max = MaxRPM * 0.75; // 75% of max rpm FIXME: may vary by engine
|
||||||
double Design_Oil_Temp = 358; // degK; FIXME: may vary by engine
|
double Design_Oil_Temp = 358; // degK; FIXME: may vary by engine
|
||||||
double Oil_Viscosity_Index = 0.25;
|
double Oil_Viscosity_Index = 0.25;
|
||||||
|
|
||||||
OilPressure_psi = (Oil_Press_Relief_Valve / Oil_Press_RPM_Max) * RPM;
|
OilPressure_psi = (Oil_Press_Relief_Valve / Oil_Press_RPM_Max) * RPM;
|
||||||
|
|
|
@ -38,11 +38,9 @@ INCLUDES
|
||||||
|
|
||||||
#include "FGTank.h"
|
#include "FGTank.h"
|
||||||
|
|
||||||
#if !defined ( sgi ) || defined( __GNUC__ ) && (_COMPILER_VERSION < 740)
|
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
using std::cout;
|
using std::cout;
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace JSBSim {
|
namespace JSBSim {
|
||||||
|
|
||||||
|
|
|
@ -48,12 +48,8 @@ INCLUDES
|
||||||
#include <input_output/FGXMLElement.h>
|
#include <input_output/FGXMLElement.h>
|
||||||
#include <math/FGColumnVector3.h>
|
#include <math/FGColumnVector3.h>
|
||||||
#include <models/FGAuxiliary.h>
|
#include <models/FGAuxiliary.h>
|
||||||
|
|
||||||
#ifdef FGFS
|
|
||||||
# include <simgear/compiler.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
@ -210,13 +206,38 @@ public:
|
||||||
/** Resets the tank parameters to the initial conditions */
|
/** Resets the tank parameters to the initial conditions */
|
||||||
void ResetToIC(void);
|
void ResetToIC(void);
|
||||||
|
|
||||||
|
/** If the tank is supplying fuel, this function returns true.
|
||||||
|
@return true if this tank is feeding an engine.*/
|
||||||
bool GetSelected(void) {return Selected;}
|
bool GetSelected(void) {return Selected;}
|
||||||
|
|
||||||
|
/** Gets the tank fill level.
|
||||||
|
@return the fill level in percent, from 0 to 100.*/
|
||||||
double GetPctFull(void) {return PctFull;}
|
double GetPctFull(void) {return PctFull;}
|
||||||
|
|
||||||
|
/** Gets the capacity of the tank.
|
||||||
|
@return the capacity of the tank in pounds. */
|
||||||
double GetCapacity(void) {return Capacity;}
|
double GetCapacity(void) {return Capacity;}
|
||||||
|
|
||||||
|
/** Gets the contents of the tank.
|
||||||
|
@return the contents of the tank in pounds. */
|
||||||
double GetContents(void) const {return Contents;}
|
double GetContents(void) const {return Contents;}
|
||||||
|
|
||||||
|
/** Gets the temperature of the fuel.
|
||||||
|
The temperature of the fuel is calculated if an initial tempearture is
|
||||||
|
given in the configuration file.
|
||||||
|
@return the temperature of the fuel in degrees C IF an initial temperature
|
||||||
|
is given, otherwise 0.0 C is returned. */
|
||||||
double GetTemperature_degC(void) {return Temperature;}
|
double GetTemperature_degC(void) {return Temperature;}
|
||||||
|
|
||||||
|
/** Gets the temperature of the fuel.
|
||||||
|
The temperature of the fuel is calculated if an initial tempearture is
|
||||||
|
given in the configuration file.
|
||||||
|
@return the temperature of the fuel in degrees F IF an initial temperature
|
||||||
|
is given, otherwise 32 degrees F is returned. */
|
||||||
double GetTemperature(void) {return CelsiusToFahrenheit(Temperature);}
|
double GetTemperature(void) {return CelsiusToFahrenheit(Temperature);}
|
||||||
|
|
||||||
double GetStandpipe(void) {return Standpipe;}
|
double GetStandpipe(void) {return Standpipe;}
|
||||||
|
|
||||||
const FGColumnVector3 GetXYZ(void);
|
const FGColumnVector3 GetXYZ(void);
|
||||||
const double GetXYZ(int idx);
|
const double GetXYZ(int idx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue