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

make accelerometer stable #1011

Merged
merged 1 commit into from
Jul 27, 2024
Merged

make accelerometer stable #1011

merged 1 commit into from
Jul 27, 2024

Conversation

pepper-jelly
Copy link
Contributor

I've noticed an issue when pitching forward or backward. I expect only the "up" or "down" directions to be registered, but instead, "left" and/or "right" are also triggered for a brief period.

The SENSOR_CENTERED is 0, so at the end we just return 0 if button not yet triggered while we change direction, otherwise it can crash as it's a non-void function.

Anyway that's what I use for a week and it works for me.

@pepper-jelly pepper-jelly force-pushed the master branch 3 times, most recently from e0a303a to 392df3d Compare July 23, 2024 21:12
Copy link
Member

@pktiuk pktiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a comment.

@pepper-jelly pepper-jelly force-pushed the master branch 5 times, most recently from 72e748b to e7c8c13 Compare July 27, 2024 20:14
I've noticed an issue when pitching forward or backward. I expect only the "up" or "down" directions to be registered, but instead, "left" and/or "right" are also triggered for a brief period.
@pepper-jelly
Copy link
Contributor Author

@pktiuk So now it's better and based on the visual feedback, we should use the dead zone for pitch and keep the diagonal range for roll.

@pktiuk pktiuk merged commit 7b64715 into AntiMicroX:master Jul 27, 2024
8 of 9 checks passed
@pktiuk
Copy link
Member

pktiuk commented Jul 27, 2024

@pepper-jelly
Thank you for your contribution

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.

2 participants