Jump to content

LUA for VS inc / decr


Sabre10

Recommended Posts

Guys, please help me out by sharing 2 small LUA files for VS inc and VS dec functions. I have somehow collected most of other lua files for FCU rotaries. I use those to map my GoFlight rotaries via FSUIPC.

Much thanks,

Sabre10.

Link to comment
Share on other sites

I've managed to hack it myself:

-- V/S inc
if ipcPARAM == 53 then
LVarSet = "L:AB_AP_VS_Select2"
LVarGet = ipc.readLvar(LVarSet)
ipc.writeLvar(LVarSet, LVarGet+1)
end
-- V/S dec
if ipcPARAM == 54 then
LVarSet = "L:AB_AP_VS_Select2"
LVarGet = ipc.readLvar(LVarSet)
ipc.writeLvar(LVarSet, LVarGet-1)
end

Cheers,

Sabre10.

PS: (I modified LUA Script v 1.2 by Steiner/guenseli for AX to reflect some of the latest AXE Lvars from AXE_SDK_108).
Link to comment
Share on other sites

  • 2 months later...
Guest Closed

Cool. :)

I too noticed that VS +/- were the only FCU controls not working, from the original AX LUA script.

Will try the above amendments. :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy & Terms of Use