Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Can you please help me use rotary encoders to turn rotary switches on the FSLabs A320 on P3D v5?

I have build a simple FCU and EFIS switch box and have included rotary encoders.  I have little or no experience of coding.  I can enable the simple switches easily enough in FSUIPV v6

How for example would you emulate to turning of the Baro switch.  I know that the parameters are as follows but using the button portion of FSUIPC either has the baro figure going up and down by one digit only, or I can only have it go up or only have it go down; not both.

Baro inc (rotor brake) 66587 / (parameter) 71085

Baro Dec (rotor brake) 66587 / (parameter) 71086

Many thanks

Liam

Posted
16 hours ago, Liam Perry said:

How for example would you emulate to turning of the Baro switch.  I know that the parameters are as follows but using the button portion of FSUIPC either has the baro figure going up and down by one digit only, or I can only have it go up or only have it go down; not both.

To implement fast/slow turning on a rotary that has only 1 button in each direction, you can use a lua script. There is one provided, called rotaries.lua (see the Lua Plug-ins document, and the examples are in the zip file). This converts your rotary button presses to fast and slow virtual button presses in each direction, to which you can then assign your controls.

John

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.