Skip to content

Instantly share code, notes, and snippets.

@pedro2555
Last active July 30, 2017 14:11
Show Gist options
  • Save pedro2555/2bda42c3d15c3707e4c5ba19b2b9cf7a to your computer and use it in GitHub Desktop.
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
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