We had persistent problems with gyro/mag compass errors on our R22 fleet. Problem traced to sensor down in the bottom of the instrument panel affected by the steel yaw pedals. Pedals degaused but errors returned after fairly short time. Eventually had to raise a mod to relocate the sensor.