This is a bit of a mystery still ... my belief is that the problems you had originate from a yaw error, meaning the craft points in another direction in reality than the IMU think's. Depending on how big the deviation is, both drifts, straight or circular uncommanded flight path's & high speed flyaways can occur. All these fly patterns comes from that the FC command the wrong motors to hold position but fails doing so, & tries again and again in vain ...
The first sign of that something is happening out from the data ... is that the used IMU (1) (red graph) & the compass yaw (green graph) slowly starts to deviate. Both agree reasonably well up to the point when you leave the cliff & starts to come out over the sea, the deviation (light blue graph) is there approx. 15 degrees which isn't uncommon, this is about 13sec into the flight.
This state continues until approx 44sec ... there the compass yaw (green graph) starts to record an increasing CCW rotation, but the used IMU (1) (red graph) doesn't follow. This slowly increase the yaw angle deviation continuously until approx 120sec ... here your drone have just drifted away straight sideways those 5,2m I mentioned in my earlier post & the yaw deviation have reached 55 degrees.
(Click on the chart to make it larger)
From 120sec to approx 220sec the IMU (1) yaw & compass yaw deviation keeps on increasing & reaches a tad over 75 degrees ... during this period your drone starts to fly uncommanded in a circular path ( shown in the sat pic. below) with an increasing heading speed ... then at 220sec the IMU (1) yaw value suddenly readjust CCW with 35 degrees. Here the deviation is back at a healthy level of approx 13 degrees which stops the uncommanded movements.
So the used IMU (1) & the compass doesn't agree ... which of them are failing & is the recorded movement really happening in reality?
If we put up all about yaw from the log side by side & compare what agrees & what doesn't ...
We see that the unused IMU (0) (blue graph) agrees with the compass (green graph) ... if we also put up the gyro (grey graph) we see that it also agrees with the CCW rotation.
The used IMU (1) (red graph) doesn't agree with those above, but ... it seems to agree with a yaw measurement coming from the VPS sensor called VIO yaw (purple graph).
So jeez ... what make out of this, 3 values favors a CCW rotation & 2 values vote for no yaw rotation?
It's a couple things that make me point the finger to a failing IMU (1) here ...
First ... you said you saw the drift & the rapid yaw change, this indicate that the movements really happened as the unused IMU (0), the compass & the gyro claims in the log.
Secondly ... a failing compass wouldn't make a drone move uncommanded, this as it's the IMU that handles the flight primarily ... a failing compass can influence the IMU by slowly feeding in correction data, but it will take some time & furthermore, the gyro will also feed in adjustments that then will contradict those from a failing compass.
And lastly ... if the gyro failed, that wouldn't make the compass to follow in the same wrong rotation direction if a movement doesn't occur.
Could it have been a wrongly initialized IMU (1) due to powering on the drone in a magnetic interfered location?
2 thing's points against that ...
1. The magnetic field (magenta graph) didn't change after the take off & during the problematic section of the flight ... if it had been a magnetic interfered powering on spot the magnetic field had changed after take off when your drone flew away from the area ... & the compass had returned to showing a correct heading ... but the IMU, already initialized had kept it's wrong heading.
2. The incident abruptly goes back to normal at approx 220sec when the IMU (1) (red graph) quickly adjust itself with 35 degrees ... which then goes back to agreeing with the presumed correct showing compass.
(Click on the chart to make it larger)
If looking into the DAT event log this is found when the straight drift with those 5,2m have happened & when the uncommanded circular flight is about to start ...
And this when the incident have stopped ...
@BudWalker ...
Do you have another conclusion other than a IMU (1) failure/glitch? I'm not comfortable with that the VIO yaw do agree with a possibly failing IMU ...