Record and integrate gryo changes to track orientation
For testing, check if accelerometer suggests starting from rest
Convert axis rotation angles (like gyro data) to/from quaternions