First attempt at auto-rotate of accelerometer readings.