Define quaternion magnitude & normalise & axis angles; standardise angles
Gyro-only quaternion calculations look sane