Home › Forums › Forums › Technical Support for BerryIMU › Heading errors › Reply To: Heading errors
March 4, 2020 at 3:27 pm #15234
that looks better.
Question, do you have any strong magnets near you where you are doing this testing?
I assume you are using compass_tutorial03.c?
And the only modifications you have made is to add the calibration values?
Right after this line in the above code
Can you add;
printf("beforeCal magRaw X %i\tmagRaw Y %i \tMagRaw Z %i ---- ", magRaw,magRaw,magRaw);
And then do the same test as before were you showed us the first 100 lines or so while rotating it.
Mark --OzzMaker.com --