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