From: Jon S. B. <jon...@co...> - 2010-12-17 01:26:16
|
This isn't a bad idea. I might even think about it, but it will cost you double what I'm paying you. ;-) We've already (IIRC) implemented an override of the integration rate from the command line. An aircraft override might be a good idea, but scripts *can* contain elements that are aircraft specific. Jon From: Bill Galbraith [mailto:bi...@be...] Sent: Thursday, December 16, 2010 7:14 PM To: 'Development issues' Subject: [Jsbsim-devel] How do I change the code? How would I go about having a change implemented? Yeah, I know HOW to change the code and comple it, etc, but I wold like to see it made part of the distribution. What I'd like to see is the command line option "--aircraft=" be able to override the aircraft specification in a script file. Currently, it will not allow it. I want to do this so that I can write scripts with a dummy aircraft name in it, and it would REQUIRE that the name were specified on the command line. If not specified, it would abort because it couldn't find the dummy name. That way, you can just copy a script over to another aircraft directory, say from Aircraft/plane_1/scripts to Aircraft/plane_2/scripts, and not have to change anything in them if the initial conditions were acceptable. Then, when you get around to customizing them, they become unique to Plane_2. Without this, you copy the scripts over, and forget to change the name in every scripts, and you end up running the right script but with the wrong aircraft. This would also allow a generic set of scripts to be put into the scripts directory that could be used for any aircraft. This also kinda changes the balance of power in the JSBSim world. Currently, the script is the overriding ruler. You must specify the aircraft name in the script, and there is no way around that. With my suggested change, some of that power is taken away from the script and given back to the user, via the command line. So, do I put in a feature request, and some secret council votes on it at a secret island ceremony, or do I just do it and throw it on the wall to see if it sticks? Of course, I'd have to have someone else commit it, since I don't have (nor do I want) write access to the CVS directory, at least not right now. Bill |