Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted (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 by Sokol1_br
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...