Magnetic compass calibration from stock