Is the compass orientation linked to the acc orientation when setting "level"?
1. You have the compass (and APM) on an angle when the plane is level.
2. You do the accelerometer level calibration in MissionPlanner.
The accelerometer is zeroed in to this new flat level, but what about the compass?