Efficient Bang-Bang Model Predictive Control for Quadcopters

Jelle Westenberger, Christophe De Wagter, Guido C. H. E. de CroonUnmanned Syst 2022 · DOI

Abstract: Autonomous drone racing and emergency response require high-speed maneuvers that push quadcopters to their physical limits. Traditional Model Predictive Control (MPC) provides optimal trajectories but is often too computationally expensive for onboard embedded systems. This paper presents a lightweight MPC strategy that simplifies the Optimal Control Problem (OCP) into a "bang-bang" control task. By prioritizing a "critical axis" for maximum acceleration and braking while using minimum effort for non-critical axes, the proposed method achieves significant speed gains. Experimental results on a Parrot Bebop drone demonstrate a 17.5% increase in flight speed over conventional PID controllers, maintaining a high control frequency of 512Hz.

Introduction

In the rapidly evolving field of autonomous aerial robotics, speed is a primary metric for success in applications like drone racing or time-sensitive search and rescue. To maximize speed, a drone must operate at the edge of its flight envelope, requiring precise control that accounts for motor limits and aerodynamic drag. While Model Predictive Control (MPC) is the gold standard for such tasks, its high computational demand typically requires powerful ground stations or heavy onboard computers.

Researchers at TU Delft have addressed this limitation by developing a simplified MPC that runs on resource-constrained hardware. By focusing on the most critical direction of travel and utilizing analytical solutions rather than numerical optimization, they have enabled small drones to perform time-optimal maneuvers in real-time.

Methodology: The Bang-Bang Approach

The core of the proposed strategy is the reduction of the complex 3D trajectory optimization problem into two simpler components based on the drone's current state and target:

  1. Critical Axis (Bang-Bang Control): The controller identifies the direction with the largest positional error. To minimize travel time, it applies maximum thrust to accelerate (Segment 1) and then switches to maximum braking (Segment 2) at a calculated "switching time."
  2. Non-Critical Axis (Minimum-Effort): For the perpendicular direction, the drone uses only the necessary tilt to reach the target position at the exact moment the critical axis maneuver completes. This preserves the "thrust budget" for the primary direction of travel.
Path prediction showing the bang-bang control segments for the longitudinal axis and minimum-effort for the lateral axis.

To avoid the overhead of numerical solvers, the authors derived 2nd-order differential equations that incorporate aerodynamic drag, allowing the drone to analytically predict its future position. The optimal switching time is found using a bisection search—a simple, iterative algorithm that quickly converges on the solution. This efficiency allows the entire control pipeline to operate at 512Hz, fitting within the standard flight control loop of the Paparazzi-UAV framework.

Algorithm 1 and the corresponding path iterations illustrating the bisection search for the optimal switching time.

Transition Compensation

A common pitfall in simplified drone models is the assumption of instantaneous attitude changes. In reality, a quadcopter takes time to rotate from an accelerating pitch to a braking pitch. The researchers implemented a "Transition Estimator" using linear regression to account for this lag, ensuring the braking phase begins early enough to prevent overshooting the target.

Experimental Results

The system was tested in TU Delft’s CyberZoo, an indoor arena equipped with Optitrack motion capture. Using a commercial Parrot Bebop quadcopter, the Bang-Bang MPC was compared against a finely-tuned PID controller in waypoint-to-waypoint "circle" flights.

  • Performance: The Bang-Bang MPC achieved flight speeds 17.5% faster than the PID controller.
  • Stability: Unlike the PID controller, which often exhibited lateral oscillations and overshoot at high speeds, the MPC remained stable and prioritized the most critical errors first.
  • Efficiency: The method proved that high-speed optimal control is possible on low-power embedded hardware without requiring complex deep-learning models or pre-calculated trajectories.

Conclusion

This research demonstrates that simplifying the physics of drone flight into a prioritized bang-bang problem can yield significant performance gains without the need for high-end computing. While current limitations include a fixed altitude and heading, future work aims to extend this model to full 3D maneuvers and implement online estimation to adapt to varying environmental conditions automatically.

Summary updated

BibTeX
@article{westenberger2022efficient,
  author = {Jelle Westenberger and Christophe De Wagter and Guido C. H. E. de Croon},
  title = {{Efficient Bang-Bang Model Predictive Control for Quadcopters}},
  journal = {Unmanned Syst.},
  year = {2022},
  doi = {10.1142/s2301385022410060},
}
Figure