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

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