Magnetic compasses are routinely mounted at the helms of power boats, replete with all sorts of electronics and I understand they are "adjusted" to account for all the stray electrons. Sorry, not quite sure how that is accomplished.
_________________________
Geezer in Chief