There are compass systems using MEMS.
MEMS means micro electromechanical systems. The MEMS compass system uses a vibrating structure gyroscope to operate. Most MEMS inertial navigation systems have integrated GPS. The very sophisticated ones are independent to prevent jamming, they use computers and an accelerometer as well as a MEMS gyroscope to operate.