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 heading calculation to core 1 #3

Merged
merged 4 commits into from
Nov 29, 2024
Merged

Move heading calculation to core 1 #3

merged 4 commits into from
Nov 29, 2024

Conversation

michaelkamprath
Copy link
Owner

In order to improve the consistency and reliability of heading calculations, move the work to maintain the heading to the second core on the RP2040, core 1. This required dedicating a I2C bus to each core, and thus affined IC20 to core 1 and I2C1 to core 0. This was solely done for wire length and placement reasons.

There is no long an option to calibrate the gyro. Instead, the gyro will always be calibrated on start up if there are no offsets set in the config file (that is, all values are 0), otherwise the offsets in the config file are used. gpio16 now indicates whether the gyro is fully initialized and calibrated, being set HIGH when the start up process is done.

@michaelkamprath michaelkamprath merged commit 3df92ae into main Nov 29, 2024
12 checks passed
@michaelkamprath michaelkamprath deleted the core1-heading branch November 29, 2024 19:05
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.

1 participant