STM32_DMP_Driver icon indicating copy to clipboard operation
STM32_DMP_Driver copied to clipboard

Have you any example to how use this?

Open josb86 opened this issue 5 years ago • 1 comments
trafficstars

Have you any example to how use this?

josb86 avatar Feb 20 '20 19:02 josb86

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.

fMeow avatar Feb 23 '20 03:02 fMeow