arXiv:2609.31232cs.ROSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.31232

Cybflight: An Embedded Rust Autopilot for Aerial Robotics Research

Yifan Lin, Chao Qin, H S Helson Go, Hugh H. -T. Liu

Yifan Lin ∗^{*}, Chao Qin, H S Helson Go, and Hugh H.-T. Liu

Abstract—Bringing an aerial robotics method from simulation to flight should not require rebuilding a mature autopilot or adding a companion computer. Cybflight is an open-source embedded Rust research autopilot whose typed, replaceable interfaces connect hardware access, perception, state estimation, trajectory planning, and control. This modular development and compile-time optimization workflow is demonstrated with replaceable Rust implementations of model predictive contour-tracking control (MPCTC) and incremental nonlinear dynamic inversion (INDI) running on one STM32H743 without a companion computer. Using this configuration, the vehicle reaches 12.38 m/s during indoor flight, while an outdoor flight using global navigation satellite system (GNSS) position updates reaches 31.4 m/s. These flights show that running demanding estimation and nonlinear control entirely on a flight-controller microcontroller need not come at the expense of a modular autopilot structure.

Code: github.com/cybird-robotics/cybflight

Video: youtu.be/awRv8zCM5KA

Figure

Fig. 1. Outdoor Split-S maneuver. The corresponding flight reached 31.4 m/s with global navigation satellite system (GNSS) position updates and fully onboard MPCTC–INDI.

I. INTRODUCTION

Research on agile flight often starts from a mature autopilot that already provides reliable operation and broad vehicle support. The challenge comes when a core estimator or controller needs to be replaced: device abstractions, configuration layers, and coupled subsystems can turn a local change into substantial firmware-specific work. One can then spend as much effort adapting the flight stack as evaluating the method.

A common workaround is to keep low-level control on the embedded flight controller and move experimental autonomy to a Linux companion computer. This provides more compute, but also adds mass, power, wiring, software integration, and cost. These penalties matter on small high-speed aircraft, where payload margin is scarce and each crash risks another expensive component.

To address these limitations, we built Cybflight around a simple goal: changing the underlying hardware or replacing an estimator, controller, or learned policy should not require reorganizing neighboring modules. Typed interfaces separate hardware access, perception, state estimation, trajectory planning, control, and actuation. A vehicle description selects concrete implementations at build time, allowing the compiler to specialize a no_std program for the target microcontroller.

We demonstrate this workflow by implementing MPCTC and INDI as replaceable Rust modules. Cybflight compiles them with the selected estimator and hardware support into one program for a single flight-controller microcontroller. High-speed indoor and outdoor flights then evaluate the resulting autopilot. Our contributions are:

  • we introduce Cybflight, an open-source no_std Rust autopilot that separates hardware-specific code from replaceable research algorithms;

  • we demonstrate its modular development and compile-time optimization workflow through Rust implementations of MPCTC and INDI integrated into a single-microcontroller autopilot;

  • we validate fully onboard autonomous flight indoors and outdoors at 12.38 m/s and 31.4 m/s, respectively.