Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

edit actions.lua commands definition sequence commands i.e. APU on/start PMDG 737NGX

Featured Replies

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

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" :biggrin:

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.