#include <FGOutput.h>
Inherits FGModel, and FGXMLFileRead.
The following specifies the way that JSBSim writes out data.
NAME is the filename you want the output to go to
TYPE can be:
CSV Comma separated data. If a filename is supplied then the
data goes to that file. If "COUT" or "cout" is specified, the
data goes to stdout. If the filename is a null filename the
data goes to stdout, as well.
SOCKET Will eventually send data to a socket output, where NAME
would then be the IP address of the machine the data should
be sent to. DON'T USE THIS YET!
FLIGHTGEAR A socket is created for sending binary data packets to
an external instance of FlightGear for visuals. Parameters
defining the socket are given on the <output> line.
TABULAR Columnar data. NOT IMPLEMENTED YET!
TERMINAL Output to terminal. NOT IMPLEMENTED YET!
NONE Specifies to do nothing. This setting makes it easy to turn on and
off the data output without having to mess with anything else.
Examples:
<output name="localhost" type="FLIGHTGEAR" port="5500" protocol="tcp" rate="10"></output>
<output name="B737_datalog.csv" type="CSV" rate="20"> <property> velocities/vc-kts </property> <velocities> ON </velocities> </output>
The arguments that can be supplied, currently, are:
RATE_IN_HZ An integer rate in times-per-second that the data is output. This
value may not be *exactly* what you want, due to the dependence
on dt, the cycle rate for the FDM.
The following parameters tell which subsystems of data to output:
simulation ON|OFF
atmosphere ON|OFF
massprops ON|OFF
aerosurfaces ON|OFF
rates ON|OFF
velocities ON|OFF
forces ON|OFF
moments ON|OFF
position ON|OFF
coefficients ON|OFF
ground_reactions ON|OFF
fcs ON|OFF
propulsion ON|OFF
NOTE that Time is always output with the data. Definition at line 134 of file FGOutput.h.
Public Types | |
| enum | eSubSystems { ssSimulation = 1, ssAerosurfaces = 2, ssRates = 4, ssVelocities = 8, ssForces = 16, ssMoments = 32, ssAtmosphere = 64, ssMassProps = 128, ssCoefficients = 256, ssPropagate = 512, ssGroundReactions = 1024, ssFCS = 2048, ssPropulsion = 4096 } |
| Subsystem types for specifying which will be output in the FDM data logging. More... | |
Public Member Functions | |
| void | DelimitedOutput (string) |
| void | Disable (void) |
| void | Enable (void) |
| FGOutput (FGFDMExec *) | |
| void | FlightGearSocketOutput (void) |
| string | GetOutputFileName (void) const |
| bool | InitModel (void) |
| bool | Load (Element *el) |
| Loads this model. | |
| bool | Run (void) |
| Runs the model; called by the Executive. | |
| void | SetDirectivesFile (string fname) |
| void | SetOutputFileName (string fname) |
| void | SetStartNewFile (bool tt) |
| void | SetSubsystems (int tt) |
| void | SetType (string) |
| void | SocketDataFill (FGNetFDM *net) |
| void | SocketOutput (void) |
| void | SocketStatusOutput (string) |
| bool | Toggle (void) |
Public Attributes | |
| FGNetFDM | fgSockBuf |
| enum JSBSim::FGOutput::eSubSystems | subsystems |
| enum eSubSystems |
Definition at line 162 of file FGOutput.h.
| bool Load | ( | Element * | el | ) | [virtual] |
| el | a pointer to the element |
Reimplemented from FGModel.
Definition at line 933 of file FGOutput.cpp.
| bool Run | ( | void | ) | [virtual] |
Reimplemented from FGModel.
Definition at line 184 of file FGOutput.cpp.
1.5.5