This library provides a C API for collecting raw magnetometer samples and generating hard iron offset and soft iron matrix calibrations using Qingde Li and John G. Griffiths's Ellipsoid Fitting algorithm. Requires the GSL library.
- Least Squares Ellipsoid Specific Fitting original publication
- MATLAB demonstration files
- MagCal C# implementation
- Magneto C explanation, full C reference, and .exe download (works well on Linux with
wine
)