In this video, I'll explain the various sources of error that affect magnetometer measurements. Then, I discuss how to calibrate your magnetometer sensor with the Magneto calibration software. Good luck!
Resources:
Magneto calibration software: https://sites.google.com/site/sailboatinstruments1/home
GitHub repo with my code: https://github.com/michaelwro/magnetometer-calibration
Check out my blog: https://mwrona.com/