Chuno Posted August 4, 2017 Posted August 4, 2017 Hello everyone! I apologize in advance if this was already asked and answered. I'm designing some panels for my cockpit and I find the following problem: For example: I have a swicth ON-OFF and I want to control the TGP. I Assign to the ON position of the swicth, the TGP ON command on the SIM. This is where I find the two problems: 1) The swicth is constantly ON, and sends the SIM that input all the time. Is there a way for the swicth to send an ON once and then not to send any input? Since when it has several swicthes they will saturate the SIM with many inputs 2) If I take the OFF position, the status change is not recorded in the SIM. I solve this by editing the .LUA file, right? My apologies for bad English, but it's not my native language. regards Chuno
Mr_Burns Posted August 4, 2017 Posted August 4, 2017 Probably best running your switch through SDA software (top sticky) or use HELIOS. They will save you having to edit .lua
JG14_Smil Posted August 4, 2017 Posted August 4, 2017 Once lua is edited, you save a copy and you're done, but note I only fly one plane. I've lost more switch bindings in Helios than I want to count :) This link explains how. Some switches are trickier than others. https://forums.eagle.ru/showthread.php?t=89226 Good luck with whatever you do.
JG14_Smil Posted August 4, 2017 Posted August 4, 2017 In a nustshell, As you see the lua code, there is a switch on and off and an interface on and off. Once you get the hang of that it is easier to understand.
Sokol1_br Posted August 6, 2017 Posted August 6, 2017 (edited) 1) The swicth is constantly ON, and sends the SIM that input all the time. Is there a way for the swicth to send an ON once and then not to send any input? Since when it has several swicthes they will saturate the SIM with many inputs 1 - Use a firmware that send only a momentary input when the switch is turned ON and other momentary input when turned OFF, I think that Lynx Cub firmware (for Arduinos) do this. http://lynx.dk/cub-firmware/ https://forums.eagle.ru/showpost.php?p=2984894&postcount=156 Seems that MMJoy2 firmware has similar option. Maybe DCSBIOS too - but seems this solution is specific for DCSW and not a "universal" controller for games. 2 - Use optocoupler (or relay/condenser - require external power source) between the USB controller and computer, this will send only a briefly input, but for switch ON position only. In this topic is used this solution - description, PCB layout is buried in middle of topic. https://forums.eagle.ru/showthread.php?t=65998 2) If I take the OFF position, the status change is not recorded in the SIM. I solve this by editing the .LUA file, right? Yes you edit LUA files and and command for DOWN (OFF) position of switches - disadvantage this method is that DCSW updates reset this changes. Or use a external keymapper with "mapped key on press" and "mapped key on release" capability (E.g. SVMapper, Joy2key...) what has his own disadvantages. Edited August 6, 2017 by Sokol1_br
Recommended Posts