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

Bugfix/gamepad teleop dexwrist ctrl #320

Merged
merged 4 commits into from
May 21, 2024

Conversation

hello-jackson
Copy link
Contributor

The gamepad D-pad can switch between controlling the head pitch and pan, and the dexwrist pitch and roll with the X button. After the button is pressed it is disabled for a time to prevent rapid toggles while holding the button. When the disable is measured in loop increments the time of disable can be inconsistent and cause occasional double toggles.

This PR changes the measure of disable time from loop iterations to a difference of two measures of time.perf_counter().

Co-authored-by: Mohamed Fazil  <97637212+hello-fazil@users.noreply.github.com>
@hello-jackson hello-jackson merged commit 122bc3a into master May 21, 2024
@hello-jackson hello-jackson deleted the bugfix/gamepad_teleop_dexwrist_ctrl branch May 21, 2024 19:16
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.

None yet

2 participants