Skip to content

Fixed divide by zero error when calibrating MPU-6886#25

Merged
LiquidCGS merged 1 commit intoLiquidCGS:mainfrom
floBik:i21
Jul 4, 2024
Merged

Fixed divide by zero error when calibrating MPU-6886#25
LiquidCGS merged 1 commit intoLiquidCGS:mainfrom
floBik:i21

Conversation

@floBik
Copy link
Copy Markdown
Contributor

@floBik floBik commented Jul 4, 2024

Fixed the crash due to division by zero when calibrating the MPU6886 mentioned in #21.
The problem was most likely caused by disabling the FIFO and reading the FIFO_COUNT register in the wrong order.

@floBik
Copy link
Copy Markdown
Contributor Author

floBik commented Jul 4, 2024

Hey @LiquidCGS it would be great if you had some time to take a look at this PR. There is a project of mine that depends on it.

@LiquidCGS
Copy link
Copy Markdown
Owner

Hey @LiquidCGS it would be great if you had some time to take a look at this PR. There is a project of mine that depends on it.

On it!

@LiquidCGS LiquidCGS merged commit b2621d0 into LiquidCGS:main Jul 4, 2024
@LiquidCGS
Copy link
Copy Markdown
Owner

I don't have an MPU6886 to test at the moment, it's odd that this fixes it since almost that exact same code works for all the other IMU's of the same family, but hey, if it works then that's what matters.

@floBik
Copy link
Copy Markdown
Contributor Author

floBik commented Jul 4, 2024

Thanks!
Yes its indeed very confusing...

@floBik floBik deleted the i21 branch July 5, 2024 06:35
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