I imagine that things like GPS must be a boon to ships which seem to me to be like big floating magnets themselves and thus subject to all kinds of problems with magnetic compasses.
All vessels have gyros nowadays, but those are dependant on power and can lock*/break down so the magnetic one must be observed at every shift of watch. There must be a deviation chart** onboard stating the deviation at every heading, the entertaining part is that that variation will change depending on where containers are loaded.

Now on offshore vessels the deviation will likely not change so much.
*I have heard of one vessel that went around in a two day half circle and grounded due to a locked gyro.
**You sway the vessel around, note the difference between gyro and compass and make a nice drawing.
What happens to gyros on aircrafts?
Do they freak out from the speed and heading changes?