Jump to content
The simFlight Network Forums

Controlling Yoke Rocker Switches


Recommended Posts

Pete--I have currently several rocker switches that I use to control the PMDG 737/777 MCP.  For example, the Airspeed Increase/Decrease command in fsuipc is

                9=R2,4,K74,11     
                10=R2,5,K75,11

The problem is repeated pushes never hit the right AS, e.g. 150 KIAS to 160 KIAS usually winds up ~165 KIAS.  I've experimented with the Action, the PollInterval and the ButtonRepeat parameters, but have not been successful.  Any ideas/assistance would be appreciated--Thanks,

 

                 Robert

Link to comment
Share on other sites

Why are you using Keystrokes? The problem most likely is that the button press is resulting in a keystroke which is beng looked up to find the action assigned to that, all via Wndows messages which queue. Are the keystrokes, rather than the buttons, repeating? You can use the FSUIPC Key/Button logging to check.

The PMDG aircraft do have individual controls you can assign, via <custom control> assignment. You get the numbers for them from their SDK .h file, towards the end. I think they would be more reliable than keystrokes.

Pete

 

Link to comment
Share on other sites

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.