20,741
edits
(→I/O) |
(→I/O) |
||
Line 271: | Line 271: | ||
For more sophisticated I/O needs, there's a separate folder in '''src/input_output/''', which contains various examples on implementing '''FGOutput''' based I/O protocols. This is also the place where the FG interfacing machinery is to be found, specifically see FGOutputFG.cxx (basically, FlightGear's NetFDM struct is the transport means for any JSBSim/FG synchronization needs). | For more sophisticated I/O needs, there's a separate folder in '''src/input_output/''', which contains various examples on implementing '''FGOutput''' based I/O protocols. This is also the place where the FG interfacing machinery is to be found, specifically see FGOutputFG.cxx (basically, FlightGear's NetFDM struct is the transport means for any JSBSim/FG synchronization needs). | ||
=== Interfacing to FlightGear === | |||
To make use of the FlightGear interface, you need to edit your JSBSim/FDM xml file and add an output section to the toplevel '''fdm_config''' node: | To make use of the FlightGear interface, you need to edit your JSBSim/FDM xml file and add an output section to the toplevel '''fdm_config''' node: | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> |