I am having issues with the compass, again.
I imported this library https://github.com/DexterInd/GrovePi/blob/master/Software/Python/grove_compass_lib.py following Karan’s advice, and at first it was working fine.
But now, after a few days not touching it, even the example problem does not work properly. I launch the program, enter any commands above 45° and the robot doesn’t stop spinning.
The heading degree I read are quite strange, as it never does a full 360. Reading the heading degree when the robot does a full 360 gives me heading from 80 to 100, and not 0 to 360.
I tried to understand what the library does, but for starters, I don’t understand why there is 5 set of the same information in the data variable.
Is there something I am missing on how the compass works?