> After noticing that the animation for the rudder, the elevator, the > ailerons and the flaps are not working anymore, I dig into the code to > find out that FlightGear expect normalized properties from JSBsim ( see > FGJSBsim::copy_from_JSBsim ).
This was discussed at length in the JSBSim developer list, and I had meant to pass this along with the FlightGear folks soone, but there's a lot going on right now. Here's the info from the JSBSim list: +++ OK. Most of these ( e.g. FCS->GetDePos(ofNorm), and the associated -norm properties ) will return zero now by default. In order to get the correct value, one will need to create an aerosurface_scale FCS component to take the surface position from absolute deflection (in degrees or radians) to one mapped between the max and min deflection for the surface. For instance, I just added this to the F-16 model: <!-- =============================================================== Component for Leading edge flap position, NORMALIZED for animation Input: fcs/lef-pos-deg Output: Component (output) value is normalized leading edge flap position, mapping the LEF domain of -2 to +25 degrees into a range of 0 to 1. --> <component name="LEF Pos Norm" type="AEROSURFACE_SCALE"> <input>fcs/lef-pos-deg</input> <domain> <min>-2</min> <!-- LEF actual minimum position --> <max>25</max> <!-- LEF actual maximum position --> </domain> <range> <min>0</min> <!-- LEF normalized minimum position --> <max>1</max> <!-- LEF normalized maximum position --> </range> </component> Note that no output component should be set, as there is no existing leading edge flap property in JSBSim - the component name will be: fcs/lef-pos-norm This is what's expected by the aerodynamics functions. The technique should also serve to drive the 3D model correctly. ---- I hope this helps. Jon ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel