|
From: Dany <da...@nu...> - 2018-12-16 11:21:27
|
On 16/12/2018 à 03:52, Ron Haertel wrote : > > here is the xml for the pedals. How and where are the factor and > offset calculations done? why .05 or -.05. I try to overwrite these > values but always is overwritten by FG. > Hi Ron, Do you mean 0.05 or 0.5? I understand 0.5. In FG, the brakes expect 0 to +1. Your rudder pedals sends -1 to +1 for the brakes (js_demo). hence, you need an offset = +1 to start from 0. But it gives total amplitude = 2 (0 to 2). Hence the 0.5 factor to go from 0 to 1. See FG Wiki Bindings property-scale http://wiki.flightgear.org/Bindings#property-scale. Mind the ordering: I always see offset before factor. I don't know if that's important. See the Saitek xml file in fgdata/Input/Joysticks/Saitek/Pro-Flight-Rudder-Pedals.xml. Your customized or personal joystick xml files should preferably be put and saved in (for Ubuntu) .fgfs/Input/Joysticks. Here, they will not be deleted by FG updatings. Dany |