I implemented a tilt-compensated compass using an NXP semiconductor app note link: App Note and hard iron calibration algorithm using Article. I am using LIS3MDL magnetometer chip in my design.
I also have Honeywell HMR3300 and HMC6343 compass modules that I have been using. Since I don't have the proper equipment to test the performance of my design, my design goal was to create a compass that can match the performance of the Honeywell compasses as much as possible. In some locations, my compass performs flawlessly every time it is calibrated.
My issue is this: depending on where the calibration and the test are being done, my compass performs really poorly while the Honeywell compasses perform pretty decently. It's difficult to think that my magnetometer chip is sensing the magnetic field differently from how the Honeywell compasses do, and I am wondering what the issue here could be. I was wondering if anyone has observed anything like this before and was able to debug troubleshoot the problem.