I'm not sure a magnetic sensor is useful when you have a GPS, because a GPS can give you a heading as soon as the measured velocity is not zero!<br><br>However I think it's possible to calibrate a magnetic sensor so that it forgets its close magnetic environment and is only sensitive to the intented magnetic signals. The magnetic environment is stored as a "fingerprint" and is then substracted to the raw measurements to get a correct value.
<br><br>Sebastien<br>