1
0
Fork 0
flightgear/src/FDM/JSBSim
ehofman b431775273 David Culp:
Here's a new FGSimTurbine module.  Changes are:

1.  Adds starting and stopping functionality
2.  Calculate() now calls other functions, based on the engine's state, which gives more readable code.

Until now turbine engines were always running as long as fuel was available. With this new module the engine defaults to OFF.  To start with the engine running, the variable FGEngine::Running must be set to true at sim startup. In FlightGear this is done with --prop:/engines/engine[n]/running=true.

To start the engine (on the ground), first set the starter to ON, i.e. FGEngine::Starter is set to true.  In FlightGear this is done by toggling /controls/engines/engine[n]/starter to TRUE.  Note that the current FlightGear key binding will not work, as it causes the starter to quit when the key is released.  A new key binding is needed, without the mod-up.

When N2 reaches 15% or greater, place the fuel cutoff control to FALSE.  This is FGEngine::Cutoff.  In FlightGear this is done with /controls/engines/engine[n]/cutoff set to FALSE.  The engine will then accelerate to idle.  Upon reaching idle, the starter is automatically turned off, and the engine is running.  There is presently no FlightGear key binding for the fuel cutoff switch.

To shut off the engine, place the fuel cutoff control to TRUE.

If you shut down the engine in flight it will windmill.  To airstart you will need at least 15% N2, just as with a ground start.  When you have enough N2, place the cutoff control to FALSE and the engine will restart. Note that if you can't get enough N2 by speeding up, you can get it by using the starter.

The reverser still works, and is controlled in FlightGear with /controls/engines/engine[n]/reverser.  With the reverser control on (TRUE), the engine will produce negative thrust in proportion to throttle position, i.e. to get more reverse
thrust, increase throttle.
2003-09-23 09:25:24 +00:00
..
filtersjb sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
.cvsignore -Removed .cvsignore from itself, since .cvsignore is now in the CVS 2001-12-12 04:15:23 +00:00
AUTHORS Sync with latest JSBSim changes. 2001-11-30 17:49:37 +00:00
FGAerodynamics.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGAerodynamics.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGAircraft.cpp sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGAircraft.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGAtmosphere.cpp More turbulence tweaks and fixes. 2003-07-14 22:34:08 +00:00
FGAtmosphere.h Add the ability to control turbulence rate as well as magnitude. 2003-07-13 20:13:18 +00:00
FGAuxiliary.cpp sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGAuxiliary.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGCoefficient.cpp Updates from JSBSim, including new turbine engine model from David Culp 2003-03-23 15:12:35 +00:00
FGCoefficient.h Updates from JSBSim, including new turbine engine model from David Culp 2003-03-23 15:12:35 +00:00
FGColumnVector3.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGColumnVector3.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGColumnVector4.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGColumnVector4.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGConfigFile.cpp Updates from JSBSim, including new turbine engine model from David Culp 2003-03-23 15:12:35 +00:00
FGConfigFile.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGDefs.h Sync with latest JSBSim 2001-11-09 04:38:53 +00:00
FGEngine.cpp David Culp: 2003-09-23 09:24:36 +00:00
FGEngine.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGFactorGroup.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGFactorGroup.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGFCS.cpp sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGFCS.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGFDMExec.cpp Updates from JSBSim, including new turbine engine model from David Culp 2003-03-23 15:12:35 +00:00
FGFDMExec.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGfdmSocket.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGfdmSocket.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGForce.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGForce.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGGroundReactions.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGGroundReactions.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGInertial.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGInertial.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGInitialCondition.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGInitialCondition.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGJSBBase.cpp Solaris namespace clash fix 2003-07-01 16:12:21 +00:00
FGJSBBase.h Solaris namespace clash fix 2003-07-01 16:12:21 +00:00
FGLGear.cpp sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGLGear.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGMassBalance.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGMassBalance.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGMatrix33.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGMatrix33.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGModel.cpp sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGModel.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGNozzle.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGNozzle.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGOutput.cpp sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGOutput.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGPiston.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGPiston.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGPosition.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGPosition.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGPropeller.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGPropeller.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGPropertyManager.cpp I had some old SimGear include directories hanging around, so this got uncought. Thanks Melchior 2003-06-03 09:17:57 +00:00
FGPropertyManager.h I had some old SimGear include directories hanging around, so this got uncought. Thanks Melchior 2003-06-03 09:17:57 +00:00
FGPropulsion.cpp Updates from JSBSim, including new turbine engine model from David Culp 2003-03-23 15:12:35 +00:00
FGPropulsion.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGRocket.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGRocket.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGRotation.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGRotation.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGRotor.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGRotor.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGScript.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGScript.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGSimTurbine.cpp David Culp: 2003-09-23 09:24:36 +00:00
FGSimTurbine.h David Culp: 2003-09-23 09:24:36 +00:00
FGState.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGState.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGTable.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGTable.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGTank.cpp Rolled last change back out -- it was causing the default 172 to hang 2003-06-08 12:04:41 +00:00
FGTank.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGThruster.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGThruster.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGTranslation.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGTranslation.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGTrim.cpp Fix for setting initial pitch angle on the ground. 2003-07-14 11:47:25 +00:00
FGTrim.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGTrimAxis.cpp Make initTheta() use the results of the search it performs. 2003-07-17 02:32:39 +00:00
FGTrimAxis.h Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGTurbine.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGTurbine.h Add the abillity to attach a propeller thruster to a turbine engine 2003-07-26 09:12:54 +00:00
FGUtility.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGUtility.h sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
JSBSim.cxx David Culp: 2003-09-23 09:25:24 +00:00
JSBSim.hxx Add the ability to control turbulence rate as well as magnitude. 2003-07-13 20:13:18 +00:00
Makefile.am sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
Makefile.solo Updates. 2001-07-26 17:17:11 +00:00
README Sync with latest JSBSim changes. 2001-11-30 17:49:37 +00:00

Contents
--------

1) Introduction
2) Building with autoconf/automake
3) Contact


1) Introduction
---------------

JSBSim is a multi-platform, general purpose object-oriented Flight
Dynamics Model (FDM) written in C++. Jon Berndt and Tony Peden began
about mid-1998 writing JSBSim. As of this writing it is the default
FDM for FlightGear. JSBSim can also be run in a standalone batch mode
for testing and study. More information on JSBSim can be found at the
JSBSim home page here:

http://jsbsim.sourceforge.net

The standalone version of JSBSim can be easily built from the command
line of a unix or unix-like (CygWin/Linux/Unix/IRIX, etc.) system like
this:

make -fMakefile.solo

If you are on an IRIX machine you can use the Makefile.irix makefile.
Directions are also provided below for using traditional auto* utilities
also provided with JSBSim.


2) Building with autoconf/automake
----------------------------------

Unpack the distribution tarball (if needed - CVS users will have
downloaded the code directly) using your preferred method, and change
to the working directory. For example :

$ tar xvfz JSBSim-0.1.2.tar.gz
$ cd JSBSim-0.1.2

NOTE for CVS users: If you are using JSBSim from a CVS checkout, or
snapshot, you will need to create the initial configure script. The
commands to do this have been included in the 'autogen.sh' script, so
just :

$ ./autogen.sh

If you wish to customise your version of JSBSim, use the following to
determine any build-time options you may be interested in.

$ ./configure --help

Then :

$ ./configure

This will check your system platform, compiler and other local
configuration variables needed to build JSBSim, and generates the
necessary Makefiles. Next :

$ make

Will compile the various classes, and link the library. Finally :

$ make install

Unless specified otherwise (with --prefix configure option), this will
install 'JSBSim.a' into '/usr/local/lib'.


3) Contact
----------

For more information on JSBSim contact Jon Berndt at jsbsim@hal-pc.org.