RE: [Flightgear-devel] FlightGear and config files
David Culp wrote: Where would be the appropriate place to look for such a file at runtime -- where should this file live? It looks to me like FlightGear could use a Config directory. It would hold preferences.xml, joystick.xml, keyboard.xml, materials.xml, mice.xml, menu.xml, options.xml as well as a jsbsim.xml. Dave I wonder ... I don't know much about where FG stores it's various files, now. For JSBSim standalone I think we would have a file that sits in the base directory (from which JSBSim is run) or specified in an environment variable JSBSIM_ROOT. This file I am referring to for JSBSim would serve to set up simulation specific (something that is not or should not be aircraft or initial conditions-specific) parameters, like: - atmosphere model choice (including whether it is earth or Mars - stay tuned) - Output logging - choice of integrators for various calculations (see McFarland paper) - etc. Jon ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear and config files
Jon Berndt wrote: For JSBSim standalone I think we would have a file that sits in the base directory (from which JSBSim is run) or specified in an environment variable JSBSIM_ROOT. This file I am referring to for JSBSim would serve to set up simulation specific (something that is not or should not be aircraft or initial conditions-specific) parameters, like: - atmosphere model choice (including whether it is earth or Mars - stay tuned) - Output logging - choice of integrators for various calculations (see McFarland paper) - etc. If it doesn't need to be in a user friendly way you could specify something like this in your ~/.fgfsrc file: --prop:/jsbsim/config/integrator=mytype --prop:/jsbsim/config/logging=true --prop:/jsbsim/config/atmosphere=mars That would require _no_ action from the FlightGear side. Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
RE: [Flightgear-devel] FlightGear and config files
If it doesn't need to be in a user friendly way you could specify something like this in your ~/.fgfsrc file: --prop:/jsbsim/config/integrator=mytype --prop:/jsbsim/config/logging=true --prop:/jsbsim/config/atmosphere=mars That would require _no_ action from the FlightGear side. Erik Hmmm. This sounds like a decent arrangement to me. One possibility, anyhow, for when integrated with FG. There would be sensible defaults built in, anyhow, so if one missed these, you'd get the standard integrators, earth atmosphere, and no logging. etc. Jon ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] FlightGear and config files
I may want to create a configuration file for JSBSim that controls simulation specific items that will likely not change often. These may include items such as the particular type of numeric integrator to use for various of our integrations. It would also include output logging information specific to JSBSim. Where would be the appropriate place to look for such a file at runtime -- where should this file live? Can there be more than one? Would it be specified on the command line? If this was solely for JSBSim by itself, I know how I'd want to do this, but since it has to work in FlightGear and play nice, I wanted to ask for input from others. Jon ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear and config files
Where would be the appropriate place to look for such a file at runtime -- where should this file live? It looks to me like FlightGear could use a Config directory. It would hold preferences.xml, joystick.xml, keyboard.xml, materials.xml, mice.xml, menu.xml, options.xml as well as a jsbsim.xml. Dave -- David Culp davidculp2[at]comcast.net ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel