To help you get started designing your own AHRS system, or just tp help convert raw sensor data into useful numbers that you can relate to the real world, we’ve created a sample AHRS sketch for the Adafruit 10-DOF IMU and Adafruit 9-DOF IMU breakouts.