I'm having some strange problems with my hexacopter. The aircraft flies well in stabilise and alt hold but as soon as I switch to loiter or auto it flies off in a random direction whilst increasing pitch. It will eventually be almost vertical before I recover in stabilise mode.
Everything is well padded with foam and I have good GPS lock according to the logs. Does anyone have any ideas as to what could be happening here? Any help is much appreciated.
I've uploaded logs here
https://www.dropbox.com/sh/7brm5m140lsuxnl/AAAy0X9o73_MUZ6M3z5oxJDSa?dl=0
And a couple of videos here
I ran compassmot getting a value of 62% and tried the flight again. Still having issues. The APM seems to be ignoring the external magnetometer and is using it's own instead despite changing the setting in mission planner.
Comments
Check the orientation of the compass. I recently had this problem. I moved the compass to see if I could get faster GPS lock and when I went to put it back on, I orientated the arrow to the left vs. forward. Took off great. Alt hold worked great. Switched to Loiter...took off like a mother to the left at almost a 45deg pitch. Switched back into alt hold and it recovered. I switched to auto land and it went nuts again. We got it down without any damage. Noticed the orientation of the compass and corrected it. Flew it again with no issues.
problem , please pass it to the rest of us.