]> git.mxchange.org Git - flightgear.git/commit
Restructuring some of the initialization code.
authorcurt <curt>
Fri, 15 Nov 2002 21:13:29 +0000 (21:13 +0000)
committercurt <curt>
Fri, 15 Nov 2002 21:13:29 +0000 (21:13 +0000)
commit52312f2a134ccb568731f069b33185942e552691
tree0d1b5104dde10ff28671eefa5ac61166dddee9da
parentbb9b1ae3c73d0336835ab11d3d2725bcef6ec97b
Restructuring some of the initialization code.

The general idea is to help clean up some aspects of the FDM init and be
able to provide startup conditions in a less ambiguous manner.

Previously, things like positions, orientations, and velocites were set on
"the bus".  These had to be read by the FDMs which then were supposed to
initialized themselves to those values and turn write around and start
modifying those values.  It was messy and cumbersome.

Now, all the initial fdm conditions are written to a sub-[property-]tree
under /sim/presets/

The values in /sim/presets/ always stay set to what the user has specified.
The user can change these at his/her liesure, and then request a "reset"
which will reset to the new conditions.  I don't even want to say how this
worked before. :-)

Now, an script, or gui interface can stage a set of initial conditions while
the sim is running (without disrupting it), and then call "reset" to commit
the change.

People who should worry about all this are FDM writters, and a small few
others who care about over all program structure and flow.
13 files changed:
src/Autopilot/auto_gui.cxx
src/Autopilot/newauto.cxx
src/FDM/Balloon.cxx
src/FDM/ExternalNet/ExternalNet.cxx
src/FDM/JSBSim/JSBSim.cxx
src/FDM/flight.cxx
src/GUI/apt_dlg.cxx
src/GUI/gui_local.cxx
src/Main/fg_init.cxx
src/Main/fg_props.cxx
src/Main/main.cxx
src/Main/options.cxx
src/Objects/newmat.cxx