Publication details

L. Giacomossi, A. Ameri, H. Forsberg, I. Tomasic, B. Cürüklü, T. Cucinotta. "Can Linux Fly a Drone? A Flight Control Evaluation for Unified UAV Architectures Using PREEMPT_RT Kernel," in Proceedings of the 31st IEEE International Conference on Emerging Technologies and Factory Automation (IEEE ETFA 2026), September 8-11, 2026, Västerås, Sweden.

Abstract

Modern UAV architectures increasingly aim to unify high-level autonomy and low-level flight control on a single General-Purpose Operating System, but complex multicore System-on-Chips introduce significant timing indeterminism. This paper performs an architectural schedulability analysis of the PREEMPT_RT Linux kernel on Raspberry Pi 5, isolating the impact of kernel activation paths (deferred SoftIRQs versus real-time direct activation) on a 250-Hz control loop, and evaluates the closed-loop consequences through a Software-in-the-Loop experiment. Under heavy stress, the standard kernel exhibits worst-case latencies above 9 ms, and even POSIX real-time policies spike to 1.8 ms. PREEMPT_RT’s direct wake-up path reduces this by 88% to under 225 µs. The SIL experiment indicates the operational consequences: the standard kernel configuration loses stability and crashes, while PREEMPT_RT completes the reference trajectory. While PREEMPT_RT bounds OS-level latency, the residual jitter on modern edge-AI SoCs is primarily driven by shared memory hierarchy contention.

Copyright by IEEE.

Download paper