An attitude and heading reference system, or AHRS, provides 3D orientation by integrating gyroscopes and fusing this data with accelerometer and magnetometer data. The yaw output is referenced to true north and the result is a drift-free orientation.