Creating a Tilt-Compensated Compass