Compass and rotation
minhanh1234 opened this issue · 1 comments
minhanh1234 commented
Hi
Would you know if this chip can calculate compass angle like most magnetometer and would you have any example code to calculate rotation count? Example if i rotate the gyro on a table? (Example: 2 counter clockwise ration)
Thanks
PaulZC commented
Hi Minh (@minhanh1234 ),
You can calculate approximate angle from either the raw magnetometer readings or the DMP quaternions. Please see the examples for more details.
The DMP has no built-in support for rotation counting. You will need to add your own.
Best wishes,
Paul