Last active
July 30, 2017 14:11
-
-
Save pedro2555/2bda42c3d15c3707e4c5ba19b2b9cf7a to your computer and use it in GitHub Desktop.
Makes the transponder setting on the Aerosoft Airbus A320 family aircraft visible to vPilot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function xpndr(varname,value) | |
if value==5 then | |
ipc.writeSB(0x7B91, 0) | |
elseif value==4 then | |
ipc.writeSB(0x7B91, 0) | |
elseif value==3 then | |
ipc.writeSB(0x7B91, 0) | |
elseif value==2 then | |
ipc.writeSB(0x7B91, 1) | |
elseif value==1 then | |
ipc.writeSB(0x7B91, 1) | |
end | |
end | |
event.Lvar("Mod_Xponder_mode",1000,"xpndr") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment