Our drone was previously functioning well—we even completed a stable autonomous flight (not perfectly tuned, but sufficient for our needs). After a crash, we reassembled it exactly as before (same components, same configuration) only replaced the Pixhawk Cube Orange carrier board (kept the original Cube flight controller). and properly recalibrated both the GPS and accelerometer.
The first problem occurred when attempting takeoff in Loiter mode. The drone flipped and crashed immediately. The logs from this incident showed several concerning errors:
2025-06-08 16:08:38.62: EKF3 IMU1 emergency yaw reset
2025-06-08 16:08:38.62: EKF3 lane switch 1
2025-06-08 16:08:38.62: EKF primary changed:1
2025-06-08 16:08:38.63: EKF3 IMU0 emergency yaw reset
2025-06-08 16:08:40.11: Crash: Disarming: AngErr=166>30, Accel=0.2<3.0
2025-06-08 16:08:40.11: EKF primary changed:0
2025-06-08 16:08:44.52: PreArm: Compass not healthy
2025-06-08 16:08:44.52: PreArm: GPS 1: Bad fix
Initially we thought this might be a GPS or compass calibration issue. The next day we replaced the GPS with a new one and recalibrated it. We tested in Stabilize mode and it flew normally - takeoff and basic flight control worked fine. We even switched to AltHold during flight, though we noticed it was difficult to control (we had planned to retune it later).
However, when we later attempted takeoff directly in AltHold mode, the drone immediately flipped upside down and crashed (video attached). This seems related to the previous Loiter mode failure, suggesting a deeper issue than just a one-time glitch.
We’re including the following in the attached google link drive:
- Flight logs from the initial Loiter crash
- Logs from the Stabilize flight and mid-air AltHold switch
- Logs from the AltHold crash
- Video footage of both crashes and the successful Stabilize flight
Any ideas what’s going wrong? we’re not sure where to focus. Any help would be greatly appreciated!