<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> The compass seems to have a strong bias on all axes. Presumably some magnet<br>
> in the GTA04 (speaker?) needs to be compensated for.  Has anyone played<br>
> with<br>
> this at all?  Figured out how to calibrate, then how to convert the 3<br>
> numbers<br>
> into  a compass direction?<br>
</div></blockquote><div><br><br>Hi Neil,<br><br>About the callibration, I propose that you write a simple code that samples the data in all axes while the user is prompted to turn his phone around one axis.<br>If you average the minimum and maximum points, you should find zero if the calibration is good. If not you will find whatever bias there is.<br>
If you repeat this procedure three times, turning each time around a differnet axis, you should get a decent calibration. (I think)<br>I don't have a GTA04 yet so I cannot try.<br><br>Lionel<br></div></div>