Keith Butterfield, Yacht and Marine Surveyor. Costa del Sol, Spain.
A one degree compass error means 10 meters off-course in a mile. Reducing deviation begins with locating the compass as far as practical from engines, instrumentation, radios and other metal objects. Electric field interference from current flowing through wires can be determined by switching instrumentation on/off and watching the compass. These electric fields can be eliminated by twisting together a few inches/centimeters of the wires leading to the instrument in question. This can be done at the switch/control panel end or near the instrument.
If an alignment error is detected, obtain a bearing to a fixed buoy, lighthouse or landmark within 10 degrees of the north/south line (alternatively use a GPS). Head the boat along that line. Turn the port/starboard compensator until the compass heading matches the bearing. Then steer 180 degrees away from the mark. If an error is detected rotate the compass body itself to correct for half of this error. Repeat this procedure.
If there is still an error, an east, then west, course is chosen and the fore/aft compensator adjusted. Any alignment error should then be reduced to the minimum. By repeating this procedure the compass will eventually have a fairly accurate magnet reading, after which the compass body can be secured in its final position. A deviation card can then be produced to match the compass rose to a true reading.