Mud Posted March 10, 2021 Posted March 10, 2021 Hey folks, I changed the default.lua for auto-collective in autopilot to the following so that I can use the EAC toggle switch on my Warthog to turn it on and off: {down = device_commands.Button_18, up = device_commands.Button_18, cockpit_device_id = devices.AUTOPILOT, value_down = 1, value_up = 0, name = _('Mud Auto-Collective Toggle'), category = _('SA342 Autopilot')}, That one works fine. Looking at the Auto-Slaved toggle, it looks like it's already set up in that way in the default.lua. However, there I have to flick the switch up to turn it on, and the down and up again to turn it off. So it's not behaving the desired way. {down = device_commands.Button_12, up = device_commands.Button_12, cockpit_device_id = devices.AUTOPILOT, value_down = 1, value_up = 0, name = _('SA342 Auto-Slaved Toggle'), category = _('SA342 Pilot Stick')}, Anybody have an idea why? Mud Spoiler W10-x64 | B650E Gigabyte Aorus Master | AMD Ryzen 7 7800X3D | Noctua NH-D15 G.Skill Trident ZS Neo DDR5-6000 64Gb | MSI RTX 3080ti Gaming X Asus Xonar AE | TM Hotas Warthog MFG Crosswind pedals | Valve Index
Tanuki44 Posted March 10, 2021 Posted March 10, 2021 Have you tried with this : {down = device_commands.Button_12, cockpit_device_id = devices.AUTOPILOT, value_down = 1, name = _('SA342 Auto-Slaved Toggle'), category = _('SA342 Pilot Stick')},
Mud Posted March 10, 2021 Author Posted March 10, 2021 That one behaves the same as mine. What I don't get is that both mine have the up and down value set, yet it only works for the auto-collective and not the auto-slave. Spoiler W10-x64 | B650E Gigabyte Aorus Master | AMD Ryzen 7 7800X3D | Noctua NH-D15 G.Skill Trident ZS Neo DDR5-6000 64Gb | MSI RTX 3080ti Gaming X Asus Xonar AE | TM Hotas Warthog MFG Crosswind pedals | Valve Index
Tanuki44 Posted March 10, 2021 Posted March 10, 2021 I may not have understood correctly, You just want to reverse the top and bottom for the Auto-Slaved Toggle?
Mud Posted March 11, 2021 Author Posted March 11, 2021 No, I want it to work with a toggle switch: Toggle up turns on auto-slave, toggle down turns it off. Currently, up turns it on, but to turn it off I have to flick the switch down and then up again. Spoiler W10-x64 | B650E Gigabyte Aorus Master | AMD Ryzen 7 7800X3D | Noctua NH-D15 G.Skill Trident ZS Neo DDR5-6000 64Gb | MSI RTX 3080ti Gaming X Asus Xonar AE | TM Hotas Warthog MFG Crosswind pedals | Valve Index
Tanuki44 Posted March 11, 2021 Posted March 11, 2021 I reproduced on my config, for 'toggle' buttons, the problem is not in the file default.lua, you must declare the two positions of the inter, did you do it ? For me, the button 15 is the high position, the 16 the low position. This should work fine with all 'toggle' buttons.
Mud Posted March 11, 2021 Author Posted March 11, 2021 You cannot declare the off position for a 2-way switch on the Warthog Hotas. In my case I'm trying to bind the auto-slave to the RDR ALTM switch. It's an ON or OFF switch, so only the ON can be mapped in the bindings in DCS. Spoiler W10-x64 | B650E Gigabyte Aorus Master | AMD Ryzen 7 7800X3D | Noctua NH-D15 G.Skill Trident ZS Neo DDR5-6000 64Gb | MSI RTX 3080ti Gaming X Asus Xonar AE | TM Hotas Warthog MFG Crosswind pedals | Valve Index
Tanuki44 Posted March 11, 2021 Posted March 11, 2021 Ahhh, it is therefore linked to Hotas itself, pity ... It is therefore preferable to map the toggles on push buttons as initially planned. If it's possible...
Recommended Posts