Pixhawk GPS Getting Crazy After Some Point

Hell all, after having my first flight I have got a couple of problems that I want to discuss with you. After taking off, I was trying different flight modes. However, My gps got crazy after some point. I am using pixhawk 2 cube and the log file related to this flight is given below.


I don’t see that your GPS “goes crazy” but I can see that your magnetometer values correlate with thrust which indicates that you have electromagnetic interference from your wiring and/or the motors.

Have a look here: PX4 enters into spiral while in hold mode