Hi,
I just would like to confirm all is done well.
I have 2 compasses, onboard and external.
External is mounted upside down, X points left and Y points front of vehicle.
Both calibrated and mx,my,mz parameters log as expected. (nose up, right roll, Z is positive as it should be).
So all seems to work well but external compass is marked as Yawed 180 … that’s not true or prints onboard are wrong.
Some compasses are YAW180 at the PCB level (Compass orientation is different from arrow on the package). That is normal. But they are always upside up. Yours is upside down, so all bets are off.
When you can see the compass IC on the PCB, typically SOT8 or some QFP8, you’re looking down on the Z Axis and Z Axis should face towards ground. Yaw180 may say that the compass X faces into the opposite direction of your FC.
Page 5 bottom.
I believe I have one QMC5883L where the FC faces backwards and Yaw90 is the result.
And I have another one where the FC faces the same direction and Yaw270 is the result.
AFAIK the orientation is relative to IMU[0]. If both your FC and the Compass face the front, then this is also the orientation on the PCB.
I went through my setups and I have a Holybro M10 GPS with IST8310 where orientation is Yaw270. This was exchanged against a BZ-251 with QMC5883L where orientation is None (not rotated) and a WS-181 with QMC5883L where the FC is backwards and Yaw90 results as orientation.