Jump to content

switch/button board based on Teensy 2.0


Recommended Posts

I'm going to have a go at putting together a switch/button box using the Teensy 2.0 interface to USB into DCS. Thinking of one potential problem which is all joystick buttons are momentary push or toggle switches. How about if I add a few straight & simple on/off switches, how can I tell DCS its not a momentary switch? Esp for turning on power, starting engines, that sort of thing?

Link to comment
Share on other sites

I think you have to add a diode for each switch. It´s not a DCS issue but how teensy/arduino/clones handle that.

i5 8400 | 32 Gb RAM | RTX 2080Ti | Virpil Mongoose T-50 base w/ Warthog & Hornet sticks | Warthog throttle | Cougar throttle USB | DIY Collective | Virpil desk mount | VKB T-Rudder Mk IV | Oculus Rift S | Buddy-Fox A-10 UFC | 3x TM MFDs | 2x bass shakers pedal plate| SIMple SIMpit chair | WinWing TakeOff panel | PointCTRL v2 | Andre JetSeat | Winwing Hornet UFC | Winwing Viper ICP

FC3 - Warthog - F-5E - Harrier - NTTR - Hornet - Tomcat - Huey - Viper - C-101 - PG - Hip - SuperCarrier - Syria - Warthog II - Hind - South Atlantic - Sinai - Strike Eagle

Link to comment
Share on other sites

The fact that a toggle (ON/OFF, ON-OFF-ON) switches have a permanent contact in ON, and so a button always pressed, don't cause issue for most games, you can test this pressing a key command and holding an then pressing another key command.

 

But remains the fact that OFF position of switch don't send signal/command for the games - due how games are coded.

 

- You can solve this (for DCS modules) editing LUA files and adding command for OFF position. See a pinned topic about, linked above by Sprool.

Downsize, DCS World updates reset the LUA files for old "default", erasing your changes, hence you need keep backups of modified LUA files for reinstall.

 

- Or using a keymapper software with "send key on press", "send key on release" function, e.g. JoyToKey, SVMapper, Joystick Gremlin.

 

- Or use (LYNX) CUB firmware, that send just a briefly momentary command when swtich change state, for ON or for OFF. Don't know if this firmware is compatible with Teensy 2.0

 

Description:https://forums.eagle.ru/showpost.php?p=2984894&postcount=156

Files: http://lynx.dk/cub-firmware/


Edited by Sokol1_br
Link to comment
Share on other sites

My control config files are kept in user>saved games>dcs.openbeta>config>input, not the main DCS directory, does that mean they will remain safe and untouched when the next version emerges? Other settings in there (skins, aircraft mods, helios, srs, etc.) seem to remain intact.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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