On Sunday 26 June 2011 14:37:09 Jon S. Berndt wrote: > > -----Original Message----- > > From: Alan Teeder [mailto:***] > > > > I have some questions regarding how data gets from the joystick, keypad > > etc to the fdm. No doubt I will feel foolish when it is pointed out that > > it is documented somewhere, but to date I have had to rely on > > experimentation and copying of XML/Nasal code from existing aircraft. > > > > 2. Is there any scaling, limiting or other filtering ? > > > > TIA > > > > Alan > > This was a much-discussed topic a few months ago. If I'm not mistaken, I > think that the consensus was that the FDM should assume that it gets the > raw signal from the joystick - even though there is some processing of the > joystick hardware signal that is thought to be effectively unavoidable. > > Jon
As was pointed out, the joystick, keyboard, mouse etc value is interpreted and processed by flightgear to become the properties in /controls/flight/(whatever). In general (there are exceptions) JSBSim.cxx copies those over to fcs/(whatever)-cmd-norm every flightgear frame. Every JSBSim frame the value from fcs/(whatever)-cmd-norm, where (whatever) is propulsion and gear controls, is moved to fcs/(whatever)-pos-norm then the JSBSim systems code runs which may or may not overwrite fcs/(whatever)-pos-norm with a calculated value. The the JSBSim autopilot code runs (different from the Flightgear autopilot). Finally the FCS section code runs. See FDM/JSBSim/models/FGFCS.cpp for details. JSBSim generally gets 4-8 frames for every FlightGear frame so that it runs at a consistent 120 frames/second. Ron ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel