Magnetic compensator

a contrivance connected with a ship's compass for compensating or neutralizing the effect of the iron of the ship upon the needle.

See also: Magnetic