Jump to content
Sign in to follow this  
Richard Muñoz

Aerosoft A320 Predictive Wind Shear System(PWS)

Recommended Posts

Hi,

Does anyone know if there is an action code that turns the PWS from AUTO to OFF in the Aerosoft A320 prof? Meaning, below is an example of the GCS. If I were to replace "GCS" with "PWS", inserting that into my lua file, would FSUIPC recognize it and later adding an assignment key (i.e. if I pressed CTL+F8 ) to have the PWS go from AUTO to OFF??
 

function AB_WX_GCS_off ()
    ipc.writeLvar("AB_WX_GCS", 0)
    AB_MPL_LightSwitch ()
    DspShow ("GCS", "off")
end

function AB_WX_GCS_on ()
    ipc.writeLvar("AB_WX_GCS", 1)
    AB_MPL_LightSwitch ()
    DspShow ("GCS", "auto")
end

function AB_WX_GCS_toggle ()
    if _tl("AB_WX_GCS", 0) then
        AB_WX_GCS_on ()
    else
        AB_WX_GCS_off ()
    end
end

Share this post


Link to post
Share on other sites

If figured it out. Changing GCS to PWS does work when wanting to switch PWS from AUTO to OFF.

 

function AB_WX_PWS_off ()
    ipc.writeLvar("AB_WX_PWS", 0)
    AB_MPL_LightSwitch ()
    DspShow ("PWS", "off")
end

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...