Hmmmm magnetic heading is where the aeroplane is pointing. Track is the actual direction of travel over planet earth, the difference is the correction for drift due to wind. 30 degrees is a lot of drift so it's likely that the compass is subject to some sort of interference too.
You need to revise your basic navigation and make sure that there's nothing within a foot of the compass that might have magnetic properties.