I think I've sorted this, works for me anyway. Its not a straight forward as the old LUA's but easy once you do it a few times.
Its a bit of a different process for 2 and 3 position switches.
This is for the A-10C but also works for UH-1 and P-51 and should work for all aircraft
3 position
["d1374pnilu1375cdnilvdnilvpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN30",
},
},
["name"] = "Master switch ARM",
},
["d1376pnilu1375cdnilvdnilvpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN29",
},
},
["name"] = "Master switch TRAIN",
The original code was just d1374 for ARM and d1376 for TRAIN. This one is fairly straight forward, same as old system. UP obviously becomes u1375. For me, as I have a homebuilt panel, this switch has 3 positions. ARM-OFF-TRAIN
2 Position
["d1387pnilu1387cdnilvdnilvpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN21",
},
},
["name"] = "HUD Mode switch Day/Night",
Even easier d1387 was original, I just added u1387
The P-51 was a bit different for a 3 position switch
["d3001pnilu3001cd15vd0.2vpnilvu0.1"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN17",
},
},
["name"] = "Supercharger switch HIGH",
},
["d3001pnilu3001cd15vd0vpnilvu0.1"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN16",
},
},
["name"] = "Supercharger switch AUTO",
The original P-51 was:
["d3001pnilunilcd15vd0.2vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN17",
},
},
["name"] = "Supercharger switch HIGH",
},
["d3001pnilunilcd15vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN16",
},
},
["name"] = "Supercharger switch AUTO",
As you will see, unlike the A-10C the switch has the same number for both positions, 3001. In this case the switch position is changed with value up/down commands (vu/vd)
First of all add 3001 as the u value (u3001)
Then if you look at supercharger high the vd is 0.2
Supercharger auto vd is 0, so it follows that the centre position is 0.1 as in my version up the page
For KaspeR32, this my my config for mixture idle cut-off
["d3011pnilu3011cd5vd0.2vpnilvu0.1"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN28",
},
},
["name"] = "Mixture EMERGENCY FULL RICH",
},
["d3011pnilu3011cd5vd0vpnilvu0.1"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN27",
},
},
["name"] = "Mixture IDLE CUT OFF",
Hope this helps and makes sense :music_whistling: BU0836X Interface {039A3D60-AA12-11e3-8001-444553540000}.diff.lua