I have observed that using a 4*3 matrix for the induction sensor data acquisition solves many problems together:
- Coordinate transformation sensor -> airframe body system
- Calibration of offset and gain
- Hard- and Soft-Iron-Calibration
- Nonorthogonality compensation matrix
- Support for arbitrary orientation of the external induction sensor (if installed)
The matrix elements can be automatically evaluated when the aircraft is circling.
Integrate this method for both induction sensors and use the external magnetometer if it provides data.