Autopilot to PX4 change error

Hi, I bought Autopilot vehicle CUAV and I wanted to change this to PX4.

Since I downloaded PX4 firmware, My QGC said the drone is upside down, so i calibrated with ROLL180. But after that It keep saying “compasses 158 inconsistent”… I also tried calibration as PITCH180, but it says same error

Hi Choky. Do you have an external compass installed, and did you set its orientation independently? Can you post a picture of your drone and all CAL_MAG parameters?