On Sunday 02 December 2001 12:00 pm, you wrote: > Tony Peden writes: > > I put some kludge code in to JSBSim.cxx to force the gear down > > before doing a ground trim. > > Wow! I'm going to grab the latest JSBSim CVS and try this out. Looks > like we'll need to add gear indicators to the panel sooner rather than > later. > > > It looks like what ever controls the default value of > > FGControls::get_gear_down() (which may well be FGControls itself) > > defaults it to gear up which is a problem for the c310. > > The default value needs to be set in preferences.xml. > > > Also, for any model which uses retractable gear, some thought needs > > to be given to fuselage/wing/nacelle/prop etc. contact points if > > the gear are up. (They need to be added to the config file) > > I will add those to the C310 from the 3-view. > > > It was necessary to change the config files again, so make sure you > > update *all* the config files in your base tree, not just the c310. > > There are ways to design config files so that they are both > forwards-and-backwards compatible (with quality degrading gracefully > both ways). When we're through this round of technical changes, let's > see if we can make the JSBSim formats a little less brittle.
Yes, I mentioned the same to Jon privately. My thought is to begin moving towards fully well-formed XML. This would make it much easier to a) flag a missing required parameter and b) have optional parameters e.g. if I could have added something like: <RETRACTABLE>TRUE</RETRACTABLE> its presence or lack thereof in the config file would be easy to detect and, in this case, default the gear unit to fixed. This also brings up the recurring question regarding the use of a third-party XML parser. For once, I'll have to side with keeping our own, since that would allow us to change the config file over in phases rather that all at once. > > > All the best, > > > David -- Tony Peden [EMAIL PROTECTED] We all know Linux is great ... it does infinite loops in 5 seconds. -- attributed to Linus Torvalds _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
