Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve gyro filter #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sndein
Copy link

@sndein sndein commented Jun 18, 2024

This replaces the code for filtering of gyro samples. Instead of lerping with a previous sample, which can potentially feel laggy if only a little, it essentially applies a negative acceleration below the threshold as outlined by the gyro guru @JibbSmart here.
This also makes the threshold act on the gyro vector's magnitude rather than each axis separately leading to a "round" threshold rather than a "square" one to put it in deadzone terms.

In a small effort to have some unification between different Quake games that implement this I also changed the default and max slider values to track the ones used in YQ2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant