Jump to content

Recommended Posts

Posted

I've bound these to encoders on my button box, and minimum movement is 6 degrees. With keyboard presses its a little less, but not 1 degree. 

Is this a bug or feature, if a feature, how can i slow it down to increment 1 degree per pulse/button press? 

Cheers. 

 

Fish's Flight Sim Videos

[sIGPIC]I13700k, RTX4090, 64gb ram @ 3600, superUltraWide 5120x1440, 2560x1440, 1920x1080, Warthog, Tusba TQS, Reverb VR1000, Pico 4, Wifi6 router, 360/36 internet[/sIGPIC]

Posted (edited)

I'm slightly confused. You say that the rotary encoder is fast and the button command is slow. In my experience it's just the other way around, and that's because the rotary encoder provides only a very short pulse on every "click". Please clarify!

Note: It's possible to make these commands faster by changing the "gain" parameter for the controls in "clickabledata.lua" under "...\DCS World OpenBeta\Mods\aircraft\A-10C_2\Cockpit\Scripts". These are the 2 lines of code with gain changed from 0.2 to 0.2:

--Horizontal Situation Indicator
elements["PNT-LVR-HSI-HDG"]				= default_axis(_("Heading Set Knob"),devices.HSI, device_commands.Button_1, 45, 1.0, 0.2, false, true)-- HWF changed gain from 0.1 to 0.2
elements["PNT-LVR-HSI-CRS"]				= default_axis(_("Course Set Knob"), devices.HSI, device_commands.Button_2, 44, 1.0, 0.2, false, true)-- HWF changed gain from 0.1 to 0.2

 

Edited by LeCuvier

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Posted (edited)

Each 'button' (or encoder) 'click, causes a rotation of 6deg. I want to make it 1 deg rotation. for each click. So I guess i'm trying to 'reduce' the gain.  

Thanks for the info. I'll have a look into that lua 

Edited by Fish

Fish's Flight Sim Videos

[sIGPIC]I13700k, RTX4090, 64gb ram @ 3600, superUltraWide 5120x1440, 2560x1440, 1920x1080, Warthog, Tusba TQS, Reverb VR1000, Pico 4, Wifi6 router, 360/36 internet[/sIGPIC]

  • 2 years later...
Posted (edited)

I've discovered a way to fix rotary knobs or buttons that move things in the cockpit too fast including Heading Knob, Course Knob and most notably the Altimeter Pressure Setting Knob.  Using DCS Bios I never had an issue with one button press or rotary knob click moving a dial more than one click, but with generic PC controllers made using LeoBodnar boards, I do.

I added the line below to my default.lua in the "Mods" folder of the install directory for DCS (DCS World OpenBeta -> Mods -> Aircraft -> A-10C_2 -> Input -> A-10C_2 -> joystick)

You must use Notepad++ in admin mode when editing the file.  Whenever DCS gets an update you have to add it back in again.

It makes these bindings move the dial only one position with each click of the joystick button or knob.

I also included a screensnip of lines 953-976 where it fits into my default.lua coding

 

--HSIdown
{down = iCommandHSI_HeadingRotaryRight, cockpit_device_id = device_id, value_down = 0.5, name = _('HSI Heading step right'), category = _('Systems')},
{down = iCommandHSI_HeadingRotaryLeft, cockpit_device_id = device_id, value_down = -0.5, name = _('HSI Heading step left'), category = _('Systems')},
{down = iCommandHSI_CourseRotaryRight, cockpit_device_id = device_id, value_down = 0.5, name = _('HSI Course step right'), category = _('Systems')},
{down = iCommandHSI_CourseRotaryLeft, cockpit_device_id = device_id, value_down = -0.5, name = _('HSI Course step left'), category = _('Systems')},

--Altimeterdown
{down = iCommandAltimeterPressureIncrease, cockpit_device_id = device_id, value_down = 0.5, name = _('Altimeter Step Up'), category = _('Systems')},
{down = iCommandAltimeterPressureDecrease, cockpit_device_id = device_id, value_down = -0.5, name = _('Altimeter Step Down'), category = _('Systems')},

added code to default lua A-10C_2.jpg

Edited by bigdave32
  • Recently Browsing   0 members

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