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

Have you any example to how use this? #4

Open
josb86 opened this issue Feb 20, 2020 · 1 comment
Open

Have you any example to how use this? #4

josb86 opened this issue Feb 20, 2020 · 1 comment

Comments

@josb86
Copy link

josb86 commented Feb 20, 2020

Have you any example to how use this?

@fMeow
Copy link
Owner

fMeow commented Feb 23, 2020

Yes and no. Notice there is exactly two different version of DMP driver. One with a complete example and the other without.

For the one in master branch, there is no example. But this version is simple and straight forward.
Just initialize by MPU6050_initialize() and DMP_Init(). Then use Read_DMP() to update quaternion computed by DMP hardware in MPU6050. At last, read these quoternion in q0,q1,q2,q3. Well, this code really sucks that the computed quoternion is hidden inside MPU6050.c.

If your MCU is powerful enough, I recommend the other version that is located in I2Cdev branch.
As for "I2Cdev" branch, there is a working example using STM32CubeMX on STM32F103C8T6.

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

No branches or pull requests

2 participants