Jump to content

Recommended Posts

Posted

I have some on-off and on-off-on switches in my new collective. For example I am able to turn on the landing light with the on input of the switch but the light does not go off when I remove that input signal. I remember going into a lua file to add code that would fix this but that was more than a few years ago now. Can someone point me in the right direction?

Thanks.

All of my posted work, ideas and contributions are licensed under the Creative Commons - Attribution-NonCommercial 4.0 International (CC BY-NC 4.0,) which precludes commercial use but encourages sharing and building on for non-commercial purposes, ©John Muldoon

Posted

This is a subset of additional lines with the original shown for the diffs.

I made these changes to the ....P-51D\joystick\default.lua

 

Probably the wrong place to put it as it will be overwritten every time there is an update. But when 2.5.6 goes stable, I will deal with that then.

 

 

 

--- default lines for battery and generator
{down = device_commands.Button_2, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,     name = _('Battery'), category = _('Right Switch Panel')},
{down = device_commands.Button_4, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,     name = _('Generator'), category = _('Right Switch Panel')},


---Added line for Battery On/Off
{down = device_commands.Button_12, up = device_commands.Button_12, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, value_up = 0.0, name = _('Battery 2-Pos ON/OFF'), category = _('Right Switch Panel')},

--Added line for Generator On/Off
{down = device_commands.Button_13, up = device_commands.Button_13, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, value_up = 0.0, name = _('Generator 2-Pos ON/OFF'), category = _('Right Switch Panel')},

Posted
I remember going into a lua file to add code that would fix this but that was more than a few years ago now. Can someone point me in the right direction?

Thanks.

 

The answer is burried in this thread:

https://forums.eagle.ru/showthread.php?t=89226

 

Basically it is not rocket science and maybe your problem war already answered there.

If not: drop me a note and I'll look what I can do for you.

Posted
This is a subset of additional lines with the original shown for the diffs.

I made these changes to the ....P-51D\joystick\default.lua

 

Probably the wrong place to put it as it will be overwritten every time there is an update. But when 2.5.6 goes stable, I will deal with that then.

 

That worked. I tried to change the code in the BU0836a_dif.lua but there had to be something in the default lua for it to reference. Once the changes were made in the default file then the controller file changed automatically.

At first I didn’t give the command a new name and that wasn’t working as it created a conflict with the original entry.

Thanks.

All of my posted work, ideas and contributions are licensed under the Creative Commons - Attribution-NonCommercial 4.0 International (CC BY-NC 4.0,) which precludes commercial use but encourages sharing and building on for non-commercial purposes, ©John Muldoon

Posted
The answer is burried in this thread:

https://forums.eagle.ru/showthread.php?t=89226

 

Basically it is not rocket science and maybe your problem war already answered there.

If not: drop me a note and I'll look what I can do for you.

 

That was the thread. I remember the input structure was changed a couple of years after this thread started but the answer is on page 11 or 12.

Thanks for your help.

All of my posted work, ideas and contributions are licensed under the Creative Commons - Attribution-NonCommercial 4.0 International (CC BY-NC 4.0,) which precludes commercial use but encourages sharing and building on for non-commercial purposes, ©John Muldoon

  • Recently Browsing   0 members

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