PurdueKev

Saitek Switch Panel - strange ALT behavior

Recommended Posts

Hello:

 

I recently installed LINDA in order to control my Saitek Switch and Radio Panels in P3Dv4.  I have copied and pasted the appropriate profile text from the config-HID-saitek file into config-HID to control the "Default FSX" assignments with the Switch Panel, and all assignments show up properly in the LINDA GUI.  However, for some reason when turning on the ALT switch with the BATTERY switch already on, the BATTERY switch turns off on its own.  This occurs for every aircraft I have tried it with.  Any idea what is occurring? I have tried several times to assign and re-assign the BAT and ALT switches, and I am sure that I have only the action for the Alternator to turn on when the ALT button is activated, but I can confirm this is happening repeatedly.

I do not have the Saitek/Logitech plug-ins activated (so only LINDA is controlling the panels), and I have the latest version of FSUIPC v5 installed.  Have you seen this behavior before?

Thanks!

 

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

The effect of the ALT turning off the BAT is a feature of the default aircraft not LINDA. It is something I have puzzled over since starting using flt sims.

If you are using the latest LINDA 3.0.1 you do not need to use the config-hid-saitek defaults for the Radio Panel. These functions are now built into the GUI. Go to Setup LINDA and tick Saitek Panels and the go to Setup Joysticks and disable the Radio Panel. 

Share this post


Link to post
Share on other sites

I stand corrected. I went delving into the original LUA code for the default aircraft (lib-fallback.lua) and found a coding error. The Alternator is controlled by offset 3101 of length 1. The code wrote zero to 4 bytes which also turned off the Battery, Avionics and Fuel Pumps. I will correct this in future releases.

However, should you want to make the changes yourself you can do so. Open the LIB-Fallback.lua in the LINDA editor. Search for functions Alternator_on/off/toggle. Change the ipc.writeDD and ipc.readDD to ipc.writeUB and ipc.readUB respectively.

function Alternator_on ()
    ipc.writeUB("3101", 1)
    DspShow ("ALT", "on")
end

function Alternator_off ()
    ipc.writeUB("3101", 0)
    DspShow ("ALT", "off")
end

function Alternator_toggle ()
    if ipc.readUB("3101") == 0 then
        Alternator_on ()
    else
        Alternator_off ()
    end
end

 

 

Share this post


Link to post
Share on other sites

Thanks so much!  I was pulling my hair out wondering what I was doing wrong! :biggrin:  I will try out those edits in the LINDA editor as you described - I very much appreciate you checking into the code!

Cheers!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now