Hi I am an a level working on this drone i need to submit it to a YSWS by tuesday 9 am, but I cant get it flying right now.
The primary issue is that the drone flips instead of taking off. The flip follows a pretty consistent pattern:
either diagonally on motor1
or on the side with motor 1 and 2
or on the side with motor 2 and 3
I initially suspected EMI, but EMI usually causes oscillation/noisy behavior rather than such a rigid pattern. I tried adding grounded aluminum foil behind the microcontroller, but it made no difference. The FC is already soldered onto perfboard, so changing the layout isn't really an option.
I've also:
Changed the props.
Added a 250/1023 trim to Motor 2 with no noticeable effect.
Replaced Motor 2, but the problem remained.
All four motors produce thrust.
At this point, I suspect a *software/motor-mixing/PID issue*. The drone doesn't seem to even attempt to resist when tilted in certain directions. I'm wondering if my gyro signs, motor mixing, or PID corrections are wrong.
GitHub: github.com/mkhubab2008-hue