Automatic Calibration Of Magnetic Tracking Device