AltIMU-10 V5 yaw angles is very bad

The min/max magnetometer calibration method helps, but does not always work well.

You might find the more advanced method used in this post helpful.