9-axis attitude and heading

Accelerometer, gyro and compass in one filter: roll, pitch and a heading to north that neither drifts nor jumps. Live, with things to try.