Jump to content

Sign in to follow this  
gasher9999

PMDG737 NGXu - APU on and start

Recommended Posts

Hi, 

I've been trying to combine two functions to one switch on Saitek Switch Panel to be able to turn on and start the APU in my NGXu. This is probably my 500th attempt. What am I doing wrong? 

Using the latest LINDA, FSUIPC (reg) and latest 737NGXu profile.

Any help would be much appreciated.

function NGX_APU_on ()
        ipc.control(PMDGBaseVar+118, PMDG_ClkL)
        ipc.sleep(50)
        NGX_APU_start()
        ipc.control(PMDGBaseVar+118, PMDG_ClkL)
        NGX_APU_show()

Thanks,

Glenn Asher

Edited by gasher9999
Typo

Glenn Asher

Share this post


Link to post
Share on other sites

Hello,

 

that is, because things are not as easy as they seem 😉

 

On isse is, that you probably have now two functions named NGX_APU_on (). Only one is working then. Be sure to name them differently.

 

If this is not the case:

You could probably use the already existing functions ad combine them:

 

function NGX_start_and_on ()
    NGX_APU_on ()
    ipc.sleep(300)
    NGX_APU_start()
end

 

However, I haven't tested this, but should work

 


Guenter Steiner
--------------------------------------------------------------------------------------
LINDA Lua Integrated Non-complex Device Assigning

Betatester for: A2A, Hifi, Simstarter, AivlaSoft 
--------------------------------------------------------------------------------------

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.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    5%
    $1,425.00 of $25,000.00 Donate Now
×
×
  • Create New...