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

Move deadband handling into OI code #2

Open
samneff72 opened this issue Nov 3, 2019 · 0 comments
Open

Move deadband handling into OI code #2

samneff72 opened this issue Nov 3, 2019 · 0 comments

Comments

@samneff72
Copy link
Collaborator

Deadband: A set of operator inputs that are ignored as 'junk'

All joystick controllers have a small area "near zero" that is not actually zero, but we should treat as zero. When the joystick inputs are "almost" zero, the operator interface (OI) code should tell the robot they are actually zero.

Right now, that is handled in the CheesyDrive class in DriveTrain object, after passing raw stick values in from the OI. That's dumb, because the joystick will always need to have a deadband filter applied, no matter what part of the code is pulling the value, so the OI for the gamepad should handle this immediately instead of rewriting deadband code every time we use a joystick input.

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

No branches or pull requests

1 participant