Duckling Posted September 28, 2013 Share Posted September 28, 2013 What is the 'gain' value ? Everytime it's involved at an element it gives me headaches :( An example is the ILS (device ID 53) frequency select knobs (module A-10C) MHz wheel looks as this --ILS elements["PTR-ILSCP-PWR"] = { class = {class_type.LEV, class_type.TUMB}, hint = _("ILS Frequency MHz / Power. Right mouse click to cycle power. Rotate mouse wheel to change frequency value"), device = devices.ILS, action = {device_commands.Button_2, device_commands.Button_1}, arg = {248, 247}, arg_value = {0.1, 1}, arg_lim = {{0.0, 0.30}, {0.0, 1.0}}, relative = {false, false}, animated = {true, false}, animation_speed = {0.5,0.0}, gain = {0.1, 1.0} } Sending the serie of 0.0, 0.1, 0.2, 0.3 to clickabledata gives the indicator flip through 108, 110, 110 to 111 (i.e. skipping '109' and goes directly to '110' in second detent). Reversing the serie as 0.3, 0.2, 0.1 to 0.0 gives the correct results 111, 110, 109 and 108. Have a hunch that gainvalue may be the cause but not sure. Hope anyone can explain what the 'gain' value is and how to handle it ? Cheers Gus - - - - Link to comment Share on other sites More sharing options...
Duckling Posted October 4, 2013 Author Share Posted October 4, 2013 Someone please ? The quiz is how to use the 'gain' value... - - - - Link to comment Share on other sites More sharing options...
Recommended Posts