You're saying that you're also seeing -2048 for the 3rd (the Z) value coming back from your magnetometer?
It sounds very much to me like a broken mag in your case. The tapping on the mag board sounds like it's causing a reset of the mag board. So I think a new mag will fix the problem.
Mine was no Mag error - It did exactly the same thing with a brand new mag - One was a sparkfun one was a DIY - One did exactly the same thing on 2 different APM's as well- Has to be the oilpan or a faulty new mag - But this board is also a foxtrap - they have been plagued with problems -
definitely your mag isn't working. It could be a number of things. Have you double checked that you wired it up correctly according to the wiki?
Thanks for reply. Im using drones mag connected using cable. My mag works nice before a small crash. Is there anyway to check a fried mag???
Thanks Chris - I did not have anything connected and it was still doing it just sitting here
A somewhat non related question about compass drift/accuracy. You mentioned you have been flying for months using the compass. Do you have any comments on noticeable drift in flight ? Or even bench testing ? I would also assume you run through a calibration step at start up ? Maybe not since for steering the absolute heading isn't a real issue ? Have you noticed any non linear regions in the compass swing ?
My questions are driven by an expected application that would need compass accuracy to about 5 degrees over several hours of operation.
I think it depends upon he environment you're flying in mostly rather than this particular compass. As i'm sure you know, there's no 'drift' like a gyro of course but if you're testing in your house or outdoors in an urban environment there are magnetic disturbances all over the place and these throw off all compasses including these magnetometers.
The requirement for 5 degrees of accurancy is not that difficult nor is several hours of operation.