hitmanalpha1 Posted February 28, 2021 Posted February 28, 2021 So anyone here really good at coding DCS Lua files for button binding? I’ve managed to create and add quite a few buttons binds and axis binds that I wanted for the F14. I’ve also used some of the ones from the other DCS forum post. My goal is to not use Arduino/DCS-Bios for binding except only where absolutely necessary. I still will obviously use it for outputs where needed. So here’s the main one I’m stuck on. The Master Test switch! I can make it work perfectly with a rotary encoder (with push button) using DCS Bios. However, I’m wanting to just hook my push button rotary encoder to my Leo Bodnar card and do the same thing. I’ve managed to make it sorta work. I can push/pull the button and make it rotate to the first position and back to off. (Or really any position and back to off) I can’t seem to make it continuously rotate to the next position. Anyone got a clue? Here’s my code so far for attempting to rotate the selector: {down = device_commands.BIT_Selector, cockpit_device_id = devices.BITPANEL, value_down = .1, value_up = 0, name = _('MTS Inc'), category = _('-Pmods')}, {down = device_commands.BIT_Selector, cockpit_device_id = devices.BITPANEL, value_down = -.1, value_up = 0, name = _('MTS Dec'), category = _('-Pmods')}, Here is my code for the push button (that lifts the selector) that works perfectly: --BITPanelTEST {down = device_commands.BIT_SelectorPush, up = device_commands.BIT_SelectorPush, value_down = 1, value_up = 0, cockpit_device_id = devices.BITPANEL, name = _('Selector Lift'), category = { _('-Pmods')}}, any help would be appreciated or just tell me it can’t be done lol!
Recommended Posts