Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello;

I'm using a GoFlight module to simulate the rotary dial of the transponder to go from off to alt, but I can't find in the XPNDR area of the commands a code to go thru off,sby,on,alt, Please can you help.

Thank you for your time;

Miguel

Posted

I'm using a GoFlight module to simulate the rotary dial of the transponder to go from off to alt, but I can't find in the XPNDR area of the commands a code to go thru off,sby,on,alt

FS doesn't simulate those selections in any case. You only really use them if you fly on-line with Squawkbox or FSInn. Then you'd assign whatever keystrokes or controls they need.

Regards

Pete

  • 3 weeks later...
Posted

I'm using a GoFlight module to simulate the rotary dial of the transponder to go from off to alt, but I can't find in the XPNDR area of the commands a code to go thru off,sby,on,alt,

if ipcPARAM == 1 then
	value = ipc.readLvar("L:XPDR_State") -- Reads XPDR Selector State
	if value < 5 then
	value = value + 1
	ipc.writeLvar("L:XPDR_State", value)
	end
	end
if ipcPARAM == 2 then
	value = ipc.readLvar("L:XPDR_State") -- Reads XPDR Selector State
	if value > 0 then
	value = value - 1
	ipc.writeLvar("L:XPDR_State", value)
	end
	end

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.