Will this give me a tilt compensated compass heading ?
Opened this issue · 2 comments
amansinghaljpr commented
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
orichienal commented
i am also after a solution.
I also have a gy521.
maybe he can help.
lakshanthad commented