This same exact thing happen to me. I figured the reason it happened to me, because after all that unplugging and replugging and wiring. I completly forgot to do the compass calibration on field before flight. Luckily I was staying low, and dumped it after losing control.
I had pretty good...