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

Minor changes to calibration functions as well as wait_for_light #193

Merged
merged 7 commits into from
Feb 18, 2024
Merged

Minor changes to calibration functions as well as wait_for_light #193

merged 7 commits into from
Feb 18, 2024

Conversation

ToberoCat
Copy link
Contributor

When setting up our robot for the tournament, I noticed that calibrating the gyro and accelerometer took too long. So, I made changes to speed up the calibration process to just 500 milliseconds. I also fixed a problem where calling the gyro calibration method multiple times would add bias, affecting the accuracy of the low pass filter.

We also found that in the wait for light, a camera flash to trigger the light threshold caused the robot to wait longer than necessary. To solve this, I made the robot check the light level continuously after the flash. As soon as the light level drops below the threshold, indicating the end of the flash, the robot tries again without waiting the full two seconds.

@bmcdorman bmcdorman merged commit 7b10fea into kipr:master Feb 18, 2024
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