Calibrating digital magnetometer along only two axis.
I am making a tilt-compensated digital compass with an MMC5983MA magnetometer and a LIS2HH12 accelerometer. I have been calibrating the compass using the min/max method and rotating the compass in free space, which works fairly well.I need to be able...