Skip to content
Robotics.world

Research

AccelMPC: High-Rate, Low-Power FPGA-Accelerated Model Predictive Control for Tiny Drones

Tiny drones have very fast, unstable dynamics that demand feedback rates near the kilohertz regime, but their onboard microcontrollers are too slow to run constrained MPC at those rates — recent…

The paper’s first page · arXiv:2609.09380
arXiv
2609.09380 · Preprint · not peer-reviewed
Published
2026-09-08
Authors
Andrea Grillo, Brian Plancher

In plain words

Tiny drones have very fast, unstable dynamics that demand feedback rates near the kilohertz regime, but their onboard microcontrollers are too slow to run constrained MPC at those rates — recent cached solvers such as TinyMPC can only complete one or two ADMM iterations per control step, which is not enough to converge when constraints are active.

AI summary

Overview

Research area: Embedded and edge robotics control — specifically hardware–algorithm co-design of model predictive control (MPC) for highly resource-constrained aerial robots.

Technical level: Advanced. The paper assumes familiarity with convex optimization (ADMM, quadratic programs), FPGA design flows (Vitis HLS, BRAM/LUTRAM resources, fixed-point arithmetic), and quadrotor flight control.

Scope (one sentence): The paper presents AccelMPC, an open-source FPGA-accelerated ADMM-based MPC solver paired with a custom 6 g expansion board, and demonstrates 1 kHz fully onboard constrained MPC with runtime-updated constraints on a 35 g Crazyflie quadrotor.

What This Paper Is About

Tiny drones have very fast, unstable dynamics that demand feedback rates near the kilohertz regime, but their onboard microcontrollers are too slow to run constrained MPC at those rates — recent cached solvers such as TinyMPC can only complete one or two ADMM iterations per control step, which is not enough to converge when constraints are active. The authors' goal is to close this gap by co-designing the solver algorithm, its numerical representation, its FPGA hardware mapping, and the physical board that connects the FPGA to the drone, so that constrained MPC runs fast enough to be flown onboard.

Key Contributions

  1. An end-to-end co-designed FPGA MPC solver that pairs a cached ADMM formulation (based on TinyMPC) with a banded Cholesky factorization instead of cached Riccati recursions, giving loop-carried dependencies at scalar rather than matrix granularity and cost per iteration that scales linearly, O(N_var), with the number of optimization variables.

  2. Two complementary FPGA mappings of the same solver — full_sparse, which stores expanded sparse constraint operators on chip, and staged, which reconstructs them from a compact stage-wise representation — exposing the memory-versus-computation trade-off for different problem sizes.

  3. A custom 4 × 3 cm four-layer PCB hosting an AMD Artix-7 100T FPGA with a dedicated PMIC, a high-speed SPI link to the Crazyflie MCU, a 100 MHz solver oscillator, and SPI flash for autonomous startup, plus modified FreeRTOS firmware that transmits state deviations and runtime bounds and retrieves the first optimal control input.

  4. The first (to the authors' knowledge) onboard, closed-loop flight validation of FPGA-accelerated online MPC on a tiny aerial robot, including 1 kHz dynamic obstacle avoidance — and the release of PCB design files, firmware, and FPGA solver code open source at github.com/A2R-Lab.

Main Findings

  • Solve-time speedup: The FPGA implementations are up to 15.6× faster than TinyMPC. Median time per ADMM iteration per horizon step is 52.3 µs/(iter·step) for TinyMPC, 3.69 µs/(iter·step) for full_sparse, and 3.33 µs/(iter·step) for staged, over prediction horizons H ∈ {10, 20, 30, 40, 50, 60, 70, 80}.

  • Energy and energy-delay product: The FPGA implementations achieve 5.8–14.0× lower energy per solve and 79.1–195.4× lower energy-delay product (up to 195.4×) than TinyMPC at 10 ADMM iterations.

  • Iteration budget within 1 kHz: TinyMPC completes at most 4 ADMM iterations at H = 5 and 2 at H = 10, and cannot complete a single iteration beyond that. full_sparse sustains 41, 22, 11, 8, 6, 4, 3, 2 iterations at H = 5, 10, 20, 30, 40, 50, 70, 90; staged sustains 43, 24, 12, 8, 6, 5, 3, 2, 2, 1, 1, 1 up to H = 250. The table includes 100 µs of SPI overhead for the FPGA cases.

  • Scalability: The staged mapping scales to H = 1350, corresponding to 21,612 optimization variables and 24,312 constraints, with a 44.9 ms solve time for k = 10 ADMM iterations (equivalent to 22.3 online solves per second) — beyond the kilohertz flight regime but on the same architecture without algorithmic changes. full_sparse is limited by LUTRAM spillover near H = 90.

  • Mapping trade-off: full_sparse uses far less power and lower energy per solve where its expanded operators fit, but its BRAM/LUTRAM demand grows with horizon; staged has slightly lower latency at short horizons and a much more compact memory footprint, at moderately higher power and energy over the shared operating range. Neither dominates across all objectives.

  • Numerical validation: The 32-bit fixed-point solver was checked against an otherwise identical IEEE-754 single-precision version in simulation; quantization introduced differences of approximately 10⁻⁶ m or less in predicted position RMSE, 10⁻⁷ m in maximum constraint violation, and 10⁻⁷ in control RMSE.

  • Undisturbed tracking preserved: On an unconstrained figure-eight, TinyMPC (H = 15, k = 2, 500 Hz) and the FPGA controller (H = 20, k = 28) achieved comparable closed-loop tracking, confirming the accelerator does not degrade nominal behavior while offering a much larger optimization budget.

  • Constraint enforcement: With box constraints on x and y and a deliberately constraint-violating star-shaped reference, the FPGA solved the constrained problem with H = 27, k = 9 every cycle at 1 kHz and the flown trajectory stayed inside the admissible region, whereas TinyMPC could not execute enough iterations to reliably converge at that rate.

  • Dynamic obstacle avoidance: Two operators moved instrumented boxes through the flight volume, tracked as OptiTrack rigid bodies at 120 Hz in an eight-camera arena. Each obstacle was encoded as a separating half-space, so only the bound vectors changed and the precomputed Cholesky factor and bitstream stayed unchanged; the drone deviated and returned to the nominal figure-eight at 1 kHz.

Methodology in Plain English

The starting point is the standard trick of writing a linear MPC problem as a sparse quadratic program and solving it with ADMM, an iterative method whose steps are mostly cheap elementwise operations plus one linear solve. Prior work (TinyMPC) makes that linear solve cheap on a microcontroller by caching Riccati-derived matrices and running a stage-by-stage recursion — but that recursion has matrix-sized dependencies between steps, which is awkward for a pipelined FPGA chip, and simply storing the full inverse of the matrix would not fit in the FPGA's on-chip memory.

The authors instead exploit the banded structure of the coefficient matrix: they precompute its Cholesky factorization offline, so each row stores only a small number of values and the online solve becomes a forward and backward substitution that can stream through a shift register of fixed depth. Because the bandwidth depends on local stage coupling rather than on how long the prediction horizon is, the work grows linearly with the number of variables. They also make the arithmetic FPGA-friendly: 32-bit fixed point, a power-of-two penalty parameter so multiplications become bit shifts, reciprocals of diagonal entries stored alongside the factorization so no online division is needed — leaving only additions, multiplications, shifts, and comparisons. The number of ADMM iterations per control step is fixed for deterministic latency, and the dual/auxiliary variables are warm-started across cycles.

They build two hardware versions of this same solver, differing only in whether the constraint operators are stored expanded in memory or regenerated from the stage-wise dynamics, and compare them on latency, power, energy, and resource usage. Finally, they designed a four-layer board to carry the FPGA, wired it to the drone's microcontroller over SPI, patched the flight firmware to send state and bounds and read back the control input, and flew the whole thing — including scenarios with fixed box constraints and with moving obstacles whose half-space offsets are updated each time a new motion-capture frame arrives.

Why This Matters

This work shows that the usual assumption — that explicitly constrained predictive control is simply out of reach on gram-scale robots — can be overturned by co-designing algorithm and silicon together, rather than shrinking a general-purpose solver. It provides the first flown demonstration of online (not explicit, not hardware-in-the-loop) FPGA MPC on a tiny aerial robot, and it releases the full stack so others can build on it.

Real-world applications:

  • Search and rescue in cluttered indoor spaces, where small drones must respect tight geometric limits while flying aggressively.
  • Routine inspection and maintenance of infrastructure and equipment in confined or human-shared spaces, where guaranteed constraint satisfaction matters for safety.
  • Emergency response and monitoring missions where the drone must react to newly appearing obstacles without a replanning round-trip to an offboard computer.
  • Agile flight research testbeds (e.g., drone racing and aggressive maneuvering), where richer constraints and models must run under strict size, weight, and power budgets.

Industry relevance: The paper quantifies a size, weight, and power (SWaP) path for adding real optimization-based control to commercial micro-drones and embedded robotics, and it argues for FPGAs as a practical middle ground between microcontrollers (too slow at kilohertz rates) and GPUs or edge CPUs (too power-hungry for a 35 g vehicle). The open-source PCB, firmware, and solver lower the barrier for product teams to prototype hardware-accelerated controllers.

Future Directions

  • Richer collision-avoidance formulations and more aggressive flight: cluttered, fully three-dimensional environments, online replanning around moving obstacles, and drone-racing-style trajectories that push the vehicle toward its actuation limits.
  • Systematic reduced-precision analysis: the authors propose using automated precision-analysis tools such as RoboPrec to establish accuracy and constraint-satisfaction guarantees for the current fixed-point implementation.
  • More aggressive fixed-point formats enabled by those guarantees, to further cut FPGA resource usage and power while preserving closed-loop performance.
  • Open architectural question — mapping choice: because neither full_sparse nor staged dominates across energy, latency, and scalability, selecting or automatically generating the right mapping for a given problem size and power budget remains an open design problem.

Target Audience

Robotics researchers and practitioners working on embedded and edge control, aerial robot autonomy, and optimization-based control; FPGA and hardware-architecture researchers interested in accelerator co-design for optimization workloads; and engineers building compute-constrained robotic products who want a concrete, open-source template for offloading a solver to programmable logic. Readers without background in MPC or digital design will find the hardware trade-off discussion and flight results accessible, but the solver derivation and datapath details require graduate-level familiarity with convex optimization and FPGA implementation.

Authors’ abstract

Unlocking the potential of tiny aerial robots requires order of magnitude improvements in the performance of embedded edge control. In particular, although recent cached model predictive control (MPC) solvers can handle the fast system dynamics and complex constraints required for agile drone flight, their computational demands remain prohibitive for resource-constrained robots, forcing prior implementations to operate at reduced control rates. AccelMPC overcomes this…

The full abstract on arXiv
Read the original paper

Related papers