Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello Pete, all,

How can I abjust repeat-rate for joystiсk buttons?

At the moments I'm trying to setup my CH MFP to use it as autopilot stack. The buttons on panel are configured as regular dx buttons, and work fine with latest FSUIPC.

I'd like to keep auto-repeat feature, for example for huge increasing AP_altitude by keeping the button pressed. But with auto-repeating ON - if I just hit the button(f.e. to add 100ft) - usually it increasing AP altitude by 100-400ft. Looks like I've hit the button several times.

I've also tryed to decrease refresh rate of CH MFP, but even 10times/sec instead of default 50times/sec doesn't change situation at all.

Can I fix it somehow?

Thank you!

And sorry for my English :)

Posted

How can I abjust repeat-rate for joystiсk buttons?

By changing the PollInterval, an optional parameter for the main [buttons] section, as described in the Button Programming section of the Advanced Users Guide. The default has been arrived at over many years, so shouldn't be changed on a whim, but by all means experiment if you must.

I'd like to keep auto-repeat feature, for example for huge increasing AP_altitude by keeping the button pressed. But with auto-repeating ON - if I just hit the button(f.e. to add 100ft) - usually it increasing AP altitude by 100-400ft. Looks like I've hit the button several times.

Hmm. Odd.You should be able to do it singly quite easily. Are the button signals from the device getting delayed?

I've also tryed to decrease refresh rate of CH MFP, but even 10times/sec instead of default 50times/sec doesn't change situation at all.

Won't decreasing the refresh from the device make things worse rather than better? You want the button release signal to get to FS/FSUIPC as soon as possible, not delayed by another 100 mSecs (for 10 Hz). Maybe the slowish refresh rate of 50Hz at the device is the main cause of the problem. Add to that the potential delays through Windows and the queueing system. I think the default poll interval in FSUIPC is 25 mSecs, so if the delay of the release is often at least 20 mSecs (from the 50Hz rate) I can see there being occasions when at least one repeat would occur. If FS is very busy, more maybe. Have you tried increasing the device's poll rate?

Of course if the MFP has buttons-a-plenty, or a "shift" arrangement for doubling them, you could assign two different buttons, one fast and the other slow.

Incidentally, what FS control are you assigning to for this? Sometimes FS accelerates these as well, as when, for instance, it receives two or more controls of the same type within a certain time. That might be responsible for some of it too.

Regards

Pete

Posted

Hello Pette

Thank you for quick answer!

...as described in the Button Programming section of the Advanced Users Guide.

Shame on me!

You want the button release signal to get to FS/FSUIPC as soon as possible .... Have you tried increasing the device's poll rate?

Oh, it seems something were mixed-up in my head last night.

Just tryed. With 75Hz It seems the responce become more adequate. But 100 or even 150 - doesn't help at all.

Are the button signals from the device getting delayed?

Nope, looks usual for me.

...you could assign two different buttons, one fast and the other slow.

Yeah, but I'd like to use auto-repeat. :)

what FS control are you assigning to for this?

I'm playng around "Ap Alt Var Dec \ Ap Alt Var Inc". And I've clean up Contols\Standart.xml before.

Perhaps there is any way to increase delay before auto-repeat will start?

Posted

Perhaps there is any way to increase delay before auto-repeat will start?

Not at present there isn't. I'll take a look. If it is easy enough to do, I'll add it as another [buttons] parameter.

Pete

Posted

Perhaps there is any way to increase delay before auto-repeat will start?

Not at present there isn't. I'll take a look. If it is easy enough to do, I'll add it as another [buttons] parameter.

Okay, please download the latest FSUIPC update from the Updates announcement above. There's an enhanced ButtonRepeat capability, and the default setting should meet your needs in any case.

Regards

Pete

Posted

Pete,

this is second "I-d-Like-to, Pete-please-create" request from me, performed in shortest time!

During all my history of work in Software Development industry - I've never ever meet such fast, flexible and ready-to-create developers as you!!!

Thank you very much!

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.