January 18, 20242 yr 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
January 25, 20242 yr Author 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
Archived
This topic is now archived and is closed to further replies.