Home › Forums › Forums › Technical Support for BerryIMU › Magnetometer interference? › Reply To: Magnetometer interference?
August 7, 2018 at 3:57 pm #7489
Mark Williams
Keymaster
Hi Jim, you would need to calibrate the compass to get a good heading. Here is some information about the types of interference an that can effect a magnetometer https://ozzmaker.com/compass3/
The biggest one is hard iron distortion.
If you are using python, you can use this script to get your calibratation values.
https://github.com/ozzmaker/BerryIMU/blob/master/python-BerryIMU-gryo-accel-compass/calibrateBerryIMU.py
Mark --OzzMaker.com --
