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 deadzones: Improve driver controllability #40

Open
m10653 opened this issue Mar 10, 2022 · 0 comments
Open

Improve deadzones: Improve driver controllability #40

m10653 opened this issue Mar 10, 2022 · 0 comments
Labels

Comments

@m10653
Copy link
Member

m10653 commented Mar 10, 2022

So Right now the deadzones for control are set up by clamping values within the deadzone to zero. This causing the values to jump up to their original value right after the deadzone causing loss of sensitivity.

Here is an article describing the issue. https://www.gamedeveloper.com/disciplines/doing-thumbstick-dead-zones-right

So Id recommend implementing the radial normalized deadzone or use the square normalized deadzone from the robot math class see blow.

From the math class imported from I think the 2019(Robotmath.deadzone(value,deadzone, ignorethisval) robot provides a method to create a square normalized deadzone vs the radial example explained in the article. (you would use this over the radial one in the example if you wanted different deadzones for both x and y without needing to compute an elliptical deadzone)

@m10653 m10653 added the Feature label Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant