I have followed the compass calibration tutorial for my BerryIMU v2 connected to Pi, and yet I keep getting my heading with a 50 deg range (between 270 deg and 320 deg). I have followed all the steps as advised in tutorials using code from github and yet it seems to produce this error. Would you please advise on what could be done to try to fix this?
Thanks for the reply. Yeah I used tilt compensation, the problem was still there. It's fixed now, turns out the calibration values I was getting to be used were wrong due to a computer within 2-3 feet proximity. After putting the sensor relatively far from any gadgets (other than Pi), the calibration values obtained fixed the problem.