what kind of plane is it?
have you lost a wrench lately, or screwdriver?
every airliner taking off from New York's Laguardia airport is warned of magnetic compass problems due to steel holding up the runway...
any thing like that around you?
it is interesting if activiating electrical items make the compass worse...have you checked the internal lighting system of the compass for a short?