November 18, 20178 yr Just my 2 cts. I was about to try TARGET together with LINDA when I wanted the TMWH APU start/on/off switch to work with LINDA, or perhaps direct through FSUIPC .LUA command file assignment. The problem is one needs a sequence to get past the 'on' and then 'start' position with the PMDG 737NGX APU on/start. The TMWH has just a one sided on/off switch for its APU button. Just then I took a look at the "..\Prepar3D v4\Modules\linda\aircrafts\PMDG 737NGX\actions.lua" and one can just edit the actions.lua by combining the 2 APU commands on/start to a new line item in the drop-down assignment menu, from within LINDA 'edit' function. in the EDIT function of the 737NGX actions.lua search " -- $$ APU " for the menu drop down header then combine and add 'on' and 'start' to a new <function NGX_APU_on_and_start()>, underscores are needed for spaces, the name appears automatically when I restarted/reloaded LINDA : function NGX_APU_on_and_start() if ipc.readLvar('ngx_switch_118_a') < 50 then ipc.control(PMDGBaseVar+118, PMDG_ClkL) end if ipc.readLvar('ngx_switch_118_a') == 50 then ipc.control(PMDGBaseVar+118, PMDG_ClkL) NGX_APU_show() end end et voila, can be assigned to 'release' TMWH <APU START> button (direction OFF, for I want a down movement like in the NGX) Intel 2500K | AMD 7970 | Win7x64 | 16GB | TV 40" | Touchscreen 22" | HOTAS | Rudder | MCP | FFB Joystick | FSX-SE | Prepar3D | DSC A10
November 19, 20178 yr Hi, I would not recommend editing the "actions.lua" file, but rather add this new function to the "user.lua" file for the NGX. That file is there for the user to add his own functions. After saving the file and restarting Linda, these function will also be available for assigning via "PMDG 737 user functions" That way you keep the actions.lua clean without messing with this file. This is just an advise, nothing more. Regards, William Vrielynck
Archived
This topic is now archived and is closed to further replies.