Magnetometer-Calibration 1. 2D magnetometer calibration using ellipse fitting. 2. 3D magnetometer calibration using ellipsoid fitting.