Seeed-Studio/Grove_3_Axis_Compass_V2.0_BMM150

Will this give me a tilt compensated compass heading ?

Opened this issue · 2 comments

After reading your code there seems to be a confusion , i am not sure weather it will help me to give a 2d compass heading or a 3d compass heading .

`float headingDegrees = heading * 180 / M_PI;
float xyHeadingDegrees = xyHeading * 180 / M_PI;
float zxHeadingDegrees = zxHeading * 180 / M_PI;

Serial.print("Heading: ");
Serial.println(headingDegrees);`

Looking at this you are performing calculations for both xy axis and yz axis but while printing you are only accounting for xy axis

i am also after a solution.
I also have a gy521.
maybe he can help.

Hello,

I have pushed a commit. Please check here:
de221d7

Thank you