Ardunio Mega code to read MicroMag 3-Axis Magnetometer

We can calculate the UAV heading (flight directions) from multiple consecutive GPS readings if the UAV is moving. However, for a hovering, this method would not work and we may need a magnetic compass or a magnetometer (like MicroMag 3-Axis Magnetometer from SparkFun).Is there any code out there for Ardunio Mega to read 3D magnetic vector using MicroMag 3-Axis Magnetometer ?
E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones