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 --