0
$\begingroup$

I'm using an HMC5883l compass module to find the angle at which my module is pointed from magnetic North. I found this code as an example with "HMC5883L_Simple.h" library.

enter image description here

And the results I'm getting right now are like this. Is it the angle at which my module is pointed from magnetic North in degrees? If not, How can find the pointing angle

enter image description here

$\endgroup$
0
$\begingroup$

I saw the code and yes, it is in degrees. It also would not make sense to be in radians cause it would mean a lot of turns.

$\endgroup$
  • $\begingroup$ so, it should be zero when I align my compass module with magnetic north right? But it is not happening. Do we have to do any kind of calibration before start using it? $\endgroup$ – Muhammed Roshan May 15 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.