Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Peter,

I am keen to emulate the typical pushbutton transponder that will enter the selected number (0 - 7) as the highest numeral and shift the digits to the right one position.

As far as I can tell, there are no combinations offsets via fsuipc that achieve this, and am assuming this needs to be done with a combination of storing some variables and processing.

Happy to cut some code but need some advice on how to approach this with fsuipc ... not quite sure where to start as I've only done pretty simple button assignments in the past.

Cheers,

Tony

Posted

I am keen to emulate the typical pushbutton transponder that will enter the selected number (0 - 7) as the highest numeral and shift the digits to the right one position.

Is there one that does that? All those single selector ones I've encountered work the other way, shifting to the left so the first digit entered is the first one in the transponder code. Otherwise you'd need to enter the code backwards which could introduce errors.

As far as I can tell, there are no combinations offsets via fsuipc that achieve this, and am assuming this needs to be done with a combination of storing some variables and processing.

You can certainly do it with a small Lua plug-in. you could probably do it with a sequence of keystrokes, switching from one decoding to the next by clever use of flags, but I think the Lua plug-in approach would be easier.

Happy to cut some code but need some advice on how to approach this with fsuipc ... not quite sure where to start as I've only done pretty simple button assignments in the past.

In your FSUIPC Documents folder, in the FS Modules folder, you'll find the Lua plug-ins documentation and examples. Have a look at that lot first.

Regards

Pete

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.