APM compass problems

APM compass wont calibrate on the Hex X 375mm unless i remove it completely what is the solution here is there a flight mode i can use in APM that doesn’t require a compass

If i calibrate it off the Hex its fine then i place it on the Hex and it says bad compass.

My only other solution here is to throw APM in the bin and find something else.

If it calibrates fine off the hex then there must be something on the hex causing interference with the compass.

I assume that you are using an external compass so would suggest mounting it higher up away from the frame.