Weird Compass problem

Hi all, I seem to be having a problem with my compass only working correctly when upside down. I have tried setting roll to 180, and to non. Both dont help of correct the problem and it will only work correct upside down. Here is the video.

What could this be???

How about providing us with the model of the compass and the flight controller.
Is the compass standalone or is it part of a GPS/compass module?
What is the kind and version of your GCS?