Crazy circle during mission in auto after take off

After take off, the quad started to fly in circles very fast. I had to land it by hand with the rc control.
This quad did many missions before without incidents, and analyzing the logs I can only see a GPS glitch.
It’s a Pixhawk 1 from 3D robotics with a ubox Neo-M8N with dual compass (LIS3MDL and IST8310) from mRo.
i appreciate any help.
Thanks

log_file

you are not using more than one internal magnetometer, nor have the others been calibrated.
bad interference on that one from high current on board.
make sure you use external magnetometers…

Hi Andre,
You’re correct, I always disable the internal and use exclusively the external. This time I clicked on the wrong checkbox.
Thank you