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 to calibrate the compass using rotation only about the Z axis in the X-Y plane. The problem I am seeing is that the Z-axis is completely uncalibrated so it has a much higher gain than the X or Y axis. As a result the tilt-compensation does not work properly because of the high z-axis gain.
Is there a way to calibrate the compass with only a two axis dycome?
