January 15, 201214 yr 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 January 15, 201214 yr by az1228 Francesco GattaManaging Director / Media Royaldutchvirtual.com
January 16, 201214 yr Commercial Member 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•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
January 16, 201214 yr 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
Create an account or sign in to comment