The immediate cause of the incident was probably the 30° difference between the compass and the FC's Yaw value at launch. The geoDeclination at the launch site is -3° so the Yaw/magYaw difference should have been 3°.
The .DAT begins 100 secs before the flight starts. At -100 secs the Yaw/magYaw difference was about 72°. At -93 secs it appears that the MM was picked up, turned and then placed about .7 meters lower. This allowed the Yaw/magYaw separation to be partially reconciled to the 30° seen at launch.
View attachment 87503
Why was the Yaw/magYaw separation 72° at the start of the .DAT? It can be seen from the clock value (tick#) that the MM had been powered up for roughly 24 secs prior to the start of the .DAT. I suspect that the MM was powered up in a geomagnetically distorted location resulting in both Yaw and magYaw being set to the same incorrect value. The MM was then moved to a less distorted location which resulted in the Yaw/magYaw separation seen when the .DAT started recording.
I still think something else is going on here. Look at the magnetic modulus:
It's all over the place as the aircraft takes off.
And comparing the total gyro Z with the unwrapped magnetic and IMU yaw values shows that the IMU yaw is going very wrong:
Any thoughts?