Jump to content
Sign in to follow this  
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

Edited by az1228

Francesco Gatta
Managing Director / Media

Royaldutchvirtual.com

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


Artem Crum, EASA PPL
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
LINDA Lua Integrated Non-complex Device Assigning
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

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


http://fs2crew.com/banners/Banner_FS2Crew_MJC_Supporter.png

 

 

Wayne HART

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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...