Jump to content

Archived

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

az1228

Assign FSUIPC joystick buttons with Linda

Recommended Posts

Hi Guys...I would like to use a lua script for autobrake system in order to use some buttons already configured in FSUIPC.How to use sintax in a scripts for buttons ?This coming from NGX linda module## Autobrake ###############function NGX_AUTOBRAKE_inc () ipc.control(70092, 16384) NGX_AUTOBRAKE_show ()endfunction NGX_AUTOBRAKE_dec () ipc.control(70092, 8192) NGX_AUTOBRAKE_show ()endfunction NGX_AUTOBRAKE_show () if ipc.readLvar('ngx_switch_460_a') == 0 then DspShow ("ABRK", "RTO") elseif ipc.readLvar('ngx_switch_460_a') == 10 then DspShow ("ABRK", "OFF") elseif ipc.readLvar('ngx_switch_460_a') == 20 then DspShow ("ABRK", "1") elseif ipc.readLvar('ngx_switch_460_a') == 30 then DspShow ("ABRK", "2") elseif ipc.readLvar('ngx_switch_460_a') == 40 then DspShow ("ABRK", "3") elseif ipc.readLvar('ngx_switch_460_a') == 50 then DspShow ("ABRK", "MAX") endendshould I add something like that?event.button(65, 5, "OFF")event.button(65, 8, "RTO")event.button(65, 9, "1")event.button(66, 15, "2")event.button(65, 6, "3")event.button(65, 17, "MAX")Thanks in advance for your supportFrancesco

Share this post


Link to post
Share on other sites

Francesco,NGX module in LINDA has only TWO functions to control autobrake - increase or decrease by one step. So you cannot set exact position with one "click".As for calling LINDA functions, you should do it like this:event.button(65, 17, "NGX_AUTOBRAKE_inc") -- < increase autobrakeevent.button(65, 6, "NGX_AUTOBRAKE_dec") -- < decrease autobrake

Share this post


Link to post
Share on other sites

Hi guys can you use Linda to program throttles etc or is it more for panels MCP,EICAS ETC. Wayne

Share this post


Link to post
Share on other sites

×
×
  • Create New...