Jump to content

Recommended Posts

Posted

Hello. I'm a beginner who just started. I'm setting up the X56 controller for the FA-18. I want to assign the speed brake control to the switch (ON/OFF) on the throttle. I found the following script through ChatGPT.

-- F/A-18C Speed Brake Control Script
-- JOY_BTN33 control for speed brake
local speedBrakeCommand = {
    down = 3013,   -- Replace with your specific command for speed brake down (extend)
    up = 3014      -- Replace with your specific command for speed brake up (retract)
}

function update()
    local brakeSwitchState = get_digital_input(33) -- JOY_BTN33

    if brakeSwitchState == 1 then
        -- Speed brake down (extend)
        command_once(speedBrakeCommand.down)
    else
        -- Speed brake up (retract)
        command_once(speedBrakeCommand.up)
    end
end

However, since the information on ChatGPT is outdated, I don't know how to apply the script to the latest version of DCS. How can I apply the script, and is the content of the script correct? Thank you for your help.

Posted

use Release 1.0.11 · Quaggles/dcs-input-command-injector (github.com)

and 

Munkwolf/dcs-community-keybinds: A collection of keybinds for DCS. (github.com)

as a basis would be my recommendation, rather than the approach you are currently taking.

and i would combine that with Joypro Holdi601/JoystickProfiler: Joystick Profiler Utility (github.com)for mapping... 

  • Like 3

SYSTEM SPECS: Hardware AMD 9800X3D, 64Gb RAM, 4090 FE, Virpil T50CM3 Throttle, WinWIng Orion 2 & F-16EX + MFG Crosswinds V2, Varjo Aero
SOFTWARE: Microsoft Windows 11, VoiceAttack & VAICOM PRO

YOUTUBE CHANNEL: @speed-of-heat

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Posted (edited)

Fortunately a while back ED added a way to bind the OFF state of a switch through the UI without needing to create a custom input command or use my mod.

To do so you need to use the dropdown in the assignment panel and select the _OFF variant of the button, you can see how I've set up my speed brake slider here on my X-55, pressing the slider extends speedbrakes and releasing it retracts them:

image.png

Edited by Quaggles
  • Like 1
  • Thanks 1
Posted
21 hours ago, speed-of-heat said:

use Release 1.0.11 · Quaggles/dcs-input-command-injector (github.com)

and 

Munkwolf/dcs-community-keybinds: A collection of keybinds for DCS. (github.com)

as a basis would be my recommendation, rather than the approach you are currently taking.

and i would combine that with Joypro Holdi601/JoystickProfiler: Joystick Profiler Utility (github.com)for mapping... 

This tool is convenient. It took some time, but I was able to set it up. Thank you.

2 hours ago, Quaggles said:

Fortunately a while back ED added a way to bind the OFF state of a switch through the UI without needing to create a custom input command or use my mod.

To do so you need to use the dropdown in the assignment panel and select the _OFF variant of the button, you can see how I've set up my speed brake slider here on my X-55, pressing the slider extends speedbrakes and releasing it retracts them:

image.png

 

I see, I just needed to select OFF. I hadn't looked closely at the settings screen. Thank you.

  • Recently Browsing   0 members

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