Updated for generic heading from magnetometer.