-
Notifications
You must be signed in to change notification settings - Fork 127
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
Set fifo rate and mpu addr #69
Set fifo rate and mpu addr #69
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whyameye thank you for your contribution, please check the unit tests or the github action, it seems that the structure of the functions has not been completely changed.
the only failures I'm seeing are all related to the example I pushed in the last PR and that's because that code is specifically written for the LGT8F328p. What am I not seeing specifically? |
oops sorry I see the errors now. I'll look into it. |
No worries, we will be waiting for the changes. |
I was too hasty. Still not right even though checks passed. Don't merge yet. |
OK I think this PR is good now. Let me know if you see any other problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT
2 small changes to
dmpInitialize()
:dmpInitialize()
would set the FIFO rate at 100hz (hardcoded). This commit adds an optional parameter to set the FIFO rate and defaults to 100hz if no parameter is given. Rate is calculated by(200/(1+x))
wherex
is the optional parameter and defaults to1
.dmpInitialize()
assumes the MPU6050 address is 0x68 (hardcoded). This commit adds an optional parameter to set the address and defaults to address 0x68 if no address is given.slowing down the FIFO rate was my workaround to address issue #16. Theis commit maintains backward compatibility.