The drone does not use the compass on the GPS when determining its direction

We had a similar problem that was solved by updating CAL_MAG0_ROT to Pitch 180° and Yaw 270°

Maybe this will be helpful for you: