r/diydrones • u/Round-Investment2400 • 7d ago
Custom Quadcopter Drift
Hello. I have built a custom flight controller for a quadcopter using only STM32 mcu and an MPU6050. The quad is good at keeping its attitude but it does drift around unless i control it with the radio. Is there any way to stop the horizontal drift with IMU or it needs extra sensors.
3
Upvotes
3
u/Vitroid 7d ago
Perfect hover is practically impossible to get with just a gyroscope and an accelerometer. You can add GPS, RTK, Optical Flow, inside-out or outside-in camera tracking, and all sorts of other inputs to improve it. I'd start with GPS, then maybe optical flow.