arXiv:2610.41053cs.ROOct 2026

Manuscript Offprint

arXiv:2610.41053

Veloxity: Towards Memory-Safe UAV Embedded Firmware using the Rust Programming Language

Derek Ward, Brian Bascom, Tyler Larsen, James Usevitch, Phil Tokumaru, Tim McLain

Velocity: Towards Memory-Safe UAV Embedded Firmware using the Rust Programming Language

Derek Ward*¹, Brian Bascom†¹, Tyler Larsen‡¹, James Usevitch§¹, Phil Tokumaru¶², and Tim McLain ||¹

¹Brigham Young University, Provo, UT, USA

²AeroVironment Inc., Moorpark, CA, USA

Figure

Fig. 1 Velocity firmware within the ROSflight 2.0 ecosystem.

Recent years have witnessed increased momentum towards memory-safe programming languages for safety-critical systems. Memory-safe languages can eliminate entire classes of common software errors that have historically required extensive analysis and expenditure to avoid. Nevertheless, memory-safe language adoption in aerospace remains fragmented and incomplete, particularly for unmanned aerial vehicles (UAVs). Recent Rust UAV projects either run only in simulation, are closed source, or have not been integrated with an established autonomy ecosystem and tested against existing C/C++ firmware. To address this gap, we present Velocity: an open-source embedded UAV autopilot written in the memory-safe Rust programming language. Velocity lowers the barrier to using memory-safe languages within

*Electrical and Computer Engineering Department, Brigham Young University, Provo, UT, USA; wderekb@byu.edu. †Electrical and Computer Engineering Department, Brigham Young University, Provo, UT, USA; bascomb1@byu.edu. ‡Electrical and Computer Engineering Department, Brigham Young University, Provo, UT, USA; tylerrl2@byu.edu. §Electrical and Computer Engineering Department, Brigham Young University, Provo, UT, USA; james_usevitch@byu.edu. ¶tokumaru@avinc.com. ||Mechanical Engineering Department, Brigham Young University, Provo, UT, USA; mclain@byu.edu.

modern ecosystems by providing a minimal, modular foundation for autonomous UAVs. We compare Veloxity to equivalent autopilots written in C++ in simulation, with hardware testbenches, and via outdoor waypoint-following flight tests, demonstrating functional parity with improved performance. These results indicate that modern memory-safe languages are a viable option for reliable and performant firmware for autonomous aerospace systems.

Table 1 Comparison of UAV flight software frameworks. Memory safe: flight software written in a memory-safe language, apart from low-level hardware access. ROS 2 integration: a native interface to ROS 2 autonomy software. SIL Integration: proof of software-in-the-loop (SIL) simulation. Hardware validated: demonstrated on physical flight hardware.

PX4 [1]ArduPilot[2]Fusion Reflex[3]Crazyflie[4]Peng[5]Adamant[6]Cybflight[7]ROSflight[8]Veloxity
Open Source✓✓✕✓✓✓✓✓✓
ROS 2 Integration✓✓✕✓✕✕✕✓✓
Memory Safe✕✕✓✕✓✓✓✕✓
SIL Simulation✓✓✕✓✓✕✕✓✓
Hardware Validated✓✓✓✓✕✓✓✓✓