Use history for hybrid motion tracking.
Gravity tolerance 0.5 - need to revisit this code and implement a better fix - perhaps migrate to Quaternions for all rotations?
Basic sensor motion model - integrate slightly less of the compass as it causes latency in rotations.