Automatic Calibration Of Magnetic Tracking