Jump to content

Recommended Posts

Posted

I am trying to add axis commands to control volume of radios etc. to the A-10C. The normal method and code for later aircraft does not work for the A-10. I have also tried various hacks with guessed iCommand equivalents by using the axis command in the default.lua as an example, but this also does not work. Anyone figured this out for the A-10C?

 

in clickabledata.lua, I found axis entries like this, which suggest that i could map an axis

 

elements["PTR-ANARC186-VHFFM-VOLUME"] = default_axis(_("Volume"), devices.VHF_FM_RADIO, device_commands.Button_5, 147)

 

Code example I tried in default.lua using the above which does not work and breaks the Controls GUI App:

 

{action = device_commands.PTR-ANARC164-VOLUME, cockpit_device_id=devices.UHF_RADIO, name = _('UHF Radio Volume'), category = { _('_Radio Volume Knobs-MODIFICATIONS')}},
{action = device_commands.PTR-ANARC186-VHFAM-VOLUME, cockpit_device_id=devices.VHF_AM_RADIO, name = _('VHF AM Radio Volume'), category = { _('_Radio Volume Knobs-MODIFICATIONS')}},
{action = device_commands.PTR-ANARC186-VHFFM-VOLUME, cockpit_device_id=devices.VHF_FM_RADIO, name = _('VHF FM Radio Volume'), category = { _('_Radio Volume Knobs-MODIFICATIONS')}},
{action = device_commands.PTR-TACAN-VOL, cockpit_device_id=devices.TACAN_CTRL_PANEL, name = _('TACAN Volume'), category = { _('_Radio Volume Knobs-MODIFICATIONS')}},
{action = device_commands.PNT-LEV-RWR-AUD, cockpit_device_id=devices.CMSC, name = _('RWR Volume'), category = { _('_Radio Volume Knobs-MODIFICATIONS')}},
{action = device_commands.PTR-LGHTCP-FLOOD, cockpit_device_id=devices.LIGHT_SYSTEM, name = _('FLOOD LIGHTS'), category = { _('_Lighting Knobs-MODIFICATIONS')}},
{action = device_commands.PTR-LGHTCP-FLIGHT-INST, cockpit_device_id=devices.LIGHT_SYSTEM, name = _('Instr. LIGHTS'), category = { _('_Lighting Knobs-MODIFICATIONS')}},

 

I also tried various combos of this:

 

{action = iCommandPlane_UHF_Volume, name = _('UHF Radio Volume')},
{action = iCommandPlane_VHF_AM_Volume, name = _('VHF AM Radio Volume')},
{action = iCommandPlane_VHF_FM_Volume, name = _('VHF FM Radio Volume')},

 

None of these bring any result.

 

Any help would be appreciated.

__________________

overalien

Hog Driver starting to really like the Tomcat

 

System specs:

Intel i7-8700k - OC to 5.0 GHz

| 32 GB RAM 3600 MHz | Nvidia 1080ti SLi | Mixed Storage - Win 10 and DCS on Samsung SSD 970 Pro

Flightgear:

7 Displays (3 x 1440p, 1 X 1080p, 3 X Lilliput Touch) | 3 x Cougar MFDs

| Warthog HOTAS | Thrustmaster TPR Pedals | iBEAM Shaker + Simshaker for Aviators w. Sound Module | Helios | VAICOM Pro + AIRIO | TrackIR 5

Posted

I find that the A-10C lua files (like those of the KA-50) do not work with the mnemomic device and command ID. You have to use the numerical ones.

 

The code below creates an axis command for the UHF radio volume knob:

{action = 3011, cockpit_device_id = 54, name = _('UHF Radio Volume')},

The device ID for the UHF Radio is 54 as you can see in "devices.lua". The command ID is 3011. You find the command as "device_commands.Button_11" in "clickabledata.lua". So it's button 11 of device 54. However, as you see in "command_defs.lua", all device command numbers are defined as 3000 + Button-Number.

Note: The axis uses only half of the slider movement. You have to define parameters in Axis Tune to use the full slider movement or pot rotation. That's a common problem in custom axis definitions.

Have fun!

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
I find that the A-10C lua files (like those of the KA-50) do not work with the mnemomic device and command ID. You have to use the numerical ones.

 

The code below creates an axis command for the UHF radio volume knob:

{action = 3011, cockpit_device_id = 54, name = _('UHF Radio Volume')},

The device ID for the UHF Radio is 54 as you can see in "devices.lua". The command ID is 3011. You find the command as "device_commands.Button_11" in "clickabledata.lua". So it's button 11 of device 54. However, as you see in "command_defs.lua", all device command numbers are defined as 3000 + Button-Number.

Note: The axis uses only half of the slider movement. You have to define parameters in Axis Tune to use the full slider movement or pot rotation. That's a common problem in custom axis definitions.

Have fun!

 

Thanks for the help man!! really appreciate. Works like a charm now :smilewink:

__________________

overalien

Hog Driver starting to really like the Tomcat

 

System specs:

Intel i7-8700k - OC to 5.0 GHz

| 32 GB RAM 3600 MHz | Nvidia 1080ti SLi | Mixed Storage - Win 10 and DCS on Samsung SSD 970 Pro

Flightgear:

7 Displays (3 x 1440p, 1 X 1080p, 3 X Lilliput Touch) | 3 x Cougar MFDs

| Warthog HOTAS | Thrustmaster TPR Pedals | iBEAM Shaker + Simshaker for Aviators w. Sound Module | Helios | VAICOM Pro + AIRIO | TrackIR 5

  • 3 years later...
Posted
On 3/20/2020 at 12:13 PM, LeCuvier said:

I find that the A-10C lua files (like those of the KA-50) do not work with the mnemomic device and command ID. You have to use the numerical ones.

 

The code below creates an axis command for the UHF radio volume knob:

 

{action = 3011, cockpit_device_id = 54, name = _('UHF Radio Volume')},
 

The device ID for the UHF Radio is 54 as you can see in "devices.lua". The command ID is 3011. You find the command as "device_commands.Button_11" in "clickabledata.lua". So it's button 11 of device 54. However, as you see in "command_defs.lua", all device command numbers are defined as 3000 + Button-Number.

Note: The axis uses only half of the slider movement. You have to define parameters in Axis Tune to use the full slider movement or pot rotation. That's a common problem in custom axis definitions.

Have fun!

any idea how to do this for the t45?
iv managed to get the control to appear ingame and bind it but it doesnt interact with the plane, the data layout is totally different for device id and commands etc

7700k @5ghz, 32gb 3200mhz ram, 2080ti, nvme drives, valve index vr

  • Recently Browsing   0 members

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