I have heard this is a
mini2 bug, and not a problem on other drones.
This is yaw error, can happen on any drone, DJI or not, doesn't matter.
As you can see in my post, something similar happened to me on an Arducopter, which is not a DJI drone.
This is why I'm careful when taking off near metal, especially when calibrating the compass, you shouldn't be anywhere near metal.
My first ever drone flight was a crash simply due to this as well. Let me explain.
I was following a YouTube tutorial on how to build an Arducopter drone, and the guy showed the calibration process indoors, and I followed it also calibrating it indoors, very bad idea.
I take off, not knowing the controls, anything, the drone rises up very fast (because it was a light and powerful custom F450 build), when it reaches about 20 meters it starts rotating on the yaw axis and flying away (toilet bowling), I panic, hit RTH, but nothing happens, the drone starts flying even faster away from me to a construction site, luckily no one was there at the moment, the drone crashes into the crane. I had to climb the fence and retrieve the drone, there was damage, landing gear was broken, and one motor was bad.
Yeah, not the best first flying experience, but you learn from mistakes, don't you?
So now I get confused when people tell me that calibrating the compass and taking off near metal is no big deal.