Orsi Posted November 15, 2017 Posted November 15, 2017 Hey, someone knows if DCS recognizes the off position on 3 position switch on/off/on or I need to use a switch ON/ON/ON? Is it possible to configure DCS to know when the switch is at OFF position?
Sokol1_br Posted November 15, 2017 Posted November 15, 2017 For default the commands has functions assigned only for OF state of switch, but you can edit LUA files adding function for OFF state. The fixed topic in this forum section, explain how edit LUA: https://forums.eagle.ru/showthread.php?t=89226 Or use external keymapper with this feature (on press, on release).
hansangb Posted November 15, 2017 Posted November 15, 2017 (edited) In other words, On/on/on DPDT would make it easy. But DCS's LUA file can be changed to use the OFF state as a transition. So look at A10 Master ARM. It has ARM, SAFE, TRAIN. And you have an on/off/on SPDT switch. LUA can be told that off(SAFE) to on(ARM) has an action, and ARM(on) to SAFE(off) is another action. And off(SAFE) to on(TRAIN) is an action, as well as the reverse TRAIN(on) to SAFE(off). See Hansolo's excellent post: https://forums.eagle.ru/showpost.php?p=2893725&postcount=104 Edited November 15, 2017 by hansangb hsb HW Spec in Spoiler --- i7-10700K Direct-To-Die/OC'ed to 5.1GHz, MSI Z490 MB, 32GB DDR4 3200MHz, EVGA 2080 Ti FTW3, NVMe+SSD, Win 10 x64 Pro, MFG, Warthog, TM MFDs, Komodo Huey set, Rverbe G1
Sokol1_br Posted November 15, 2017 Posted November 15, 2017 For USB controllers that support encoder (e.g. BU0836) a ON-OFF-ON switch can be wired in two buttons positions an set as encoder in BU0836 Encoder configuration utility. In this way the controller will send - for Windows/games, one button input (e.g. Bt1) if switch is toggled down, and other button input (e.g. Bt2) if switch is moved up. Bt1>Bt1>Bt1 Bt2>Bt2>Bt2 This result convenient for certain types of sequential controls, but not all. Explained there: http://www.737ng.co.uk/switch_as_encoder.pdf
hansangb Posted November 15, 2017 Posted November 15, 2017 Nice find, thnx hsb HW Spec in Spoiler --- i7-10700K Direct-To-Die/OC'ed to 5.1GHz, MSI Z490 MB, 32GB DDR4 3200MHz, EVGA 2080 Ti FTW3, NVMe+SSD, Win 10 x64 Pro, MFG, Warthog, TM MFDs, Komodo Huey set, Rverbe G1
Baz000 Posted November 15, 2017 Posted November 15, 2017 I use target profiles for each different aircraft in order to get these switches working as intended
Orsi Posted November 15, 2017 Author Posted November 15, 2017 (edited) I use target profiles for each different aircraft in order to get these switches working as intended I've created my own switch panel. I'm using MMJOY2 and I have 15 switches. To save buttons for other uses I'm using only ON/ON and ON/OFF/ON switches. Edited November 15, 2017 by Orsi
Sokol1_br Posted November 16, 2017 Posted November 16, 2017 (edited) For MMjoy2 you can use SVMapper, Joy2Key...and set key press in ON and OFF state of switches (what TARGET do). BTW - In MMjoy2Setup - tab "joystick buttons", you can set different "mode" for buttons (for the first 32 buttons only, above up to 120 only single press), look at this, maybe help. EDIT - This: Edited November 16, 2017 by Sokol1_br
Recommended Posts