Having some problems getting my quad (GAUI 330x) to fly autonomously using APM1 (including GPS and Xbee modules from the diydrones store). Flew it under RC control and it was great. Got it out in the field and, using the mission planner(1.1.56), told it to take off to 2m, loiter for 30s, and then land. Instead it shot up to 30m, reached 13m/s, and in (about) 10s came crashing down to earth. Luckly most of the damage was to the fame and the electronics, appear, to have escaped.
My question is how do I keep from crashing again?
To be more specific: could the crash have been caused by my lack of magnetometer, something wrong with my loiter command or land command, or is it something else?
Also, does anyone have an example of the commands needed for a basic auto flight (including takeoff and landing) I can look at?