Check for a good connection internally. Pull the gimbal off and look at the front of the drone, the compass’s connect to the power distribution board and the connectors are just barley accessible after you remove the main controller (4 rubber standoffs and 3 ribbon connectors under black tape).