Skip to content

PX4 on Linux: A History of Real Flight Control ​

When people hear “PX4 on Linux,” they often think of software-in-the-loop simulation: start PX4 on a computer and connect it to a simulator. Another familiar setup is a Raspberry Pi connected to a Pixhawk, with Linux running vision, planning or MAVROS.

There is another history, though: deploying the flight-control program directly on a Linux board, connecting real sensors, running state estimation and flight control, and sending commands to real motors and servos. Raspberry Pi with Navio2, BeagleBone Blue and later PilotPi all belong to this story. Developers in China have explored it too, including our earlier AutopilotPi, Guanglun Electronics’ R329 and T113 designs, and our current PowerFin.

This work moved beyond compiling and launching a program years ago, with documented flight tests along the way. Its history is a series of experiments with computing power, real-time behavior, hardware interfaces and maintenance costs.

Start with Where the Control Loop Runs ​

Having Linux aboard an aircraft does not tell us where PX4’s attitude and angular-rate controllers execute. At least three architectures need to be distinguished:

ArchitectureLinux’s main roleWhere PX4’s critical flight-control tasks run
Companion computer plus separate flight controllerVision, planning, mission logic and higher-level commandsOn a separate MCU, commonly running NuttX
Native Linux flight controllerPX4’s state estimation and control, potentially alongside other applicationsIn Linux userspace; peripherals or an I/O unit may handle output timing
Linux with a DSP or other real-time processorWork is divided between Linux and the real-time processorCritical real-time tasks may run primarily on the DSP’s real-time operating system
Three architectures: a separate MCU runs PX4 in a companion-computer setup; Linux runs estimation and control in a native setup; a DSP can run critical real-time tasks in a heterogeneous setup
Follow the path from real sensors through the controller to the actuators. A board name, processor model or systemd service alone does not identify the architecture. Click any image to view the original.

This article focuses on the second architecture, while also covering the heterogeneous systems that developed alongside it.

2015: From Unix-Style Microcontrollers to Broader POSIX Support ​

An important foundation of early PX4 was its modular, Unix-like development environment on microcontrollers and real-time operating systems. Threads, publish–subscribe messaging and modules launched from a shell let developers build a flight stack from components rather than one large loop.

The 2015 PX4 architecture paper by Lorenz Meier, Dominik Honegger and Marc Pollefeys described POSIX interfaces, module reuse and interoperability with Linux and ROS. The key was a portable software boundary: estimation and control modules could be reused while operating-system interfaces and drivers were adapted for each platform.

This also explains a common source of confusion. A familiar command line on a Pixhawk does not mean it runs Linux. NuttX can provide POSIX-style interfaces and a shell too.

In an April 2016 project update, Meier explicitly dated PX4’s broader POSIX support to 2015, covering Linux, macOS for development, and Qualcomm’s QuRT. The same update described Raspberry Pi 2 and Navio support at that point as suitable for bench testing.

This established a substantial software foundation. On each hardware platform, however, sensor acquisition, receiver input, motor output and failsafe handling still needed to be connected and tested. Running a control module on Linux was one step toward a complete system that could reliably fly an aircraft.

2016: Navio2 Brings Raspberry Pi into the Flight-Control Loop ​

Raspberry Pi provided computing, storage and networking. Navio expansion boards added the sensors and I/O needed for flight control. Together, they made it possible for a general-purpose single-board computer to perform flight-control tasks directly.

Navio2 stacked on a Raspberry Pi, showing its sensor hardware and servo-output pins
Navio2 adds sensors and flight-control I/O to Raspberry Pi. Image source: Emlid Navio2 documentation.

One clear milestone is PX4 v1.4.1, released on August 6, 2016. Its release notes recorded support for Raspberry Pi 2 with Navio2, explaining that the capability had existed for some time and was now integrated and flight-tested.

That record matters: PX4’s Linux path already had documented validation in real flight.

An October 2016 discussion of RPi/Navio2 I/O support showed the remaining work. A user experimenting with fixed-wing aircraft encountered mixing and output limitations. The discussion also examined the division of responsibilities between the I/O coprocessor and PX4 on Raspberry Pi, including whether independent takeover could be provided if the main program failed.

Navio2 is therefore a useful example of native Linux flight control. An auxiliary I/O processor can decode inputs and generate output waveforms while PX4’s state estimation and control remain on Raspberry Pi.

The later PX4 Navio2 guide makes this deployment model concrete: build an executable for the board, copy it to Raspberry Pi over the network, and launch px4 with its startup configuration. Board-specific startup settings load drivers connected to real sensors and outputs.

2017–2018: BeagleBone Blue and a Different Approach to I/O ​

Raspberry Pi was one option among several. The BeagleBone family combined a Linux application processor with programmable real-time units, or PRUs, useful for deterministic I/O.

By late 2017, the PX4 community was discussing BeagleBone Blue support. One developer reported an existing system using BeagleBone Black, an external inertial sensor and a custom ESC. Later replies explained that Blue’s robotics library and PRU output interfaces required their own adaptation. The discussion illustrates how much the underlying interfaces could differ across Linux boards.

On August 6, 2018, PR #10012, a BeagleBone Blue port using librobotcontrol, was merged into PX4. This provides a definite milestone in the board’s support history.

Compared with the Navio2 approach, BeagleBone Blue brought more of the sensors, interfaces and power circuitry needed for robotics onto one board. PX4 used the relevant software library to access those capabilities, while the PRU architecture could handle timing for outputs such as PWM. The official BeagleBone Blue guide documents this installation and runtime model.

Annotated BeagleBone Blue board showing its inertial sensors, barometer, servo outputs and power connectors
BeagleBone Blue combines Linux computing, sensors and robotics interfaces on one board. Image source: the official PX4 guide. Click to read the original annotations.

The division of work is practical: Linux calculates control commands, and a dedicated unit generates precisely timed output signals.

2020: PilotPi Continues the Open Linux Flight-Controller Approach ​

As Raspberry Pi and its Linux software environment evolved, developers also worked to reduce dependence on proprietary components. PilotPi was one example.

PR #16072, merged on November 10, 2020, renamed the existing AirPi2 target to PilotPi and added an ARM64 target, a toolchain and related CI builds.

The official PilotPi guide describes running PX4 directly on Raspberry Pi, with an open hardware design and components supported by the Raspberry Pi and PX4 communities. It covers environments including Raspberry Pi OS and Ubuntu Server.

PilotPi expansion hardware stacked on a Raspberry Pi 4B
PilotPi stacked with a Raspberry Pi 4B. Image source: the official PX4 guide, illustrating the platform’s hardware arrangement.

Raspberry Pi performs the flight-control calculations, while the expansion hardware provides sensors, interfaces and output capabilities. The PCA9685 listed in the guide is one example: Linux sets the output values, and the device generates the PWM pulses.

Work by Developers in China: AutopilotPi, Guanglun and PowerFin ​

This history also developed within China’s open hardware community. Work expanded from adding flight-control shields to general-purpose computers toward designing dedicated flight controllers around Linux processors. Low-cost SoCs, onboard sensors and different output-assistance mechanisms led to several implementations.

2022: Our AutopilotPi, a Compact V3s-Based Linux Flight Controller ​

AutopilotPi was one of our earlier experiments. The project introduction published in June 2022 described an Allwinner V3s with a single Cortex-A7 core at 1 GHz, 64 MB of DDR2, and integrated inertial, compass and barometric sensors. An introduction and test video published that month presented the low-cost Linux flight-controller project.

The motivation was straightforward. General-purpose single-board computers lacked flight sensors, and extra wiring was inconvenient on small aircraft, so we put the Linux processor and the required sensors on one compact board. The project description also records the context: MCU shortages encouraged developers to consider alternative platforms, while Linux tools and interfaces made software reuse across SoCs worth exploring.

Three-dimensional PCB render of the compact V3s-based AutopilotPi flight-controller board and its interface pins
A PCB render of our early AutopilotPi, from the public hardware repository. It illustrates the approach of building a compact, dedicated board around V3s.

The architecture was PX4 running on Linux on V3s, with an onboard FPGA handling PWM output. The FPGA generated waveforms rather than running a second complete flight stack. The project also documented a test quadrotor with four 720-size brushed coreless motors, flying in stabilized mode. Real sensors and motors were connected to validate the control chain. The public hardware repository provides schematics, PCB files and links to the Linux kernel, PX4 branch and FPGA HDL.

The contemporary description referred to the kernel configuration as “soft real-time” and reported the project’s own latency tests. AutopilotPi demonstrated this approach with modest computing resources and cost, while making the hardware and software adaptation available to others.

Alongside and Afterward: Guanglun’s R329 and T113-S3 Designs ​

Guanglun Electronics (光轮电子) is another developer whose work belongs in this history. GLPX4-R329 used an Allwinner R329 with two Cortex-A53 cores and 256 MB of memory. The project published hardware designs, Linux kernel and PX4 branches, along with explanation and flight-test videos. A June 2022 commit in its PX4 branch already included Linux PWM output changes, placing it in the same period of exploration as AutopilotPi.

The R329 project also showed PX4 running alongside video transmission from a USB camera over Wi-Fi. This captures part of Linux flight control’s appeal: networking, storage and application software can all be used within the same system.

Guanglun later developed GLDRONE-T113. In its introduction, the author explained that the R329 design had been considered for production but was shelved because its flight performance was unsatisfactory. Development continued with T113-S3. A March 2025 commit in the T113 branch recorded progress with auxiliary outputs and flight testing.

The T113 design divides responsibilities clearly: the dual Cortex-A7 T113-S3 runs PX4 on Linux; an STM32G031, connected over a serial link, assists with DShot300 output and battery voltage and current measurements. The IMU connects to T113 over SPI.

The documented software combination is mainline Linux 6.8 without an RT patch, with a port based on PX4 v1.14.2. The author presents it as an experimental flight controller for enthusiasts to study.

Guanglun GLPX4-R329 board shown on both sides, with the R329 processor and sensor specifications annotated
Both sides of GLPX4-R329 and its specifications. Image source: Guanglun’s R329 project page.
Top of Guanglun’s GLDRONE-T113 flight controller, showing the T113-S3 processor and annotated connectors
The later GLDRONE-T113 and its interfaces. Image source: Guanglun’s T113 project page. Both images retain the original annotations, including Chinese labels.

2026: PowerFin, from Dedicated Hardware toward Shared Drivers ​

Our current PowerFin continues the direction explored with AutopilotPi: integrating a Linux processor, sensors, flight-control interfaces and power circuitry into a dedicated controller, while improving networking and debugging in practical use. The current board has three Cortex-A7 cores, dual-band Wi-Fi, analog OSD and bidirectional DShot. The product page provides the hardware specifications.

PowerFin flight-controller top-side design showing its Linux processor and surrounding interfaces
PowerFin, top side.
PowerFin flight-controller bottom-side design showing the components and connector layout
PowerFin, bottom side. Both images are from our product documentation.

Compared with the earlier V3s-and-FPGA implementation, PowerFin’s development also reaches further into shared interfaces between Linux and PX4. In an October 2026 PX4 community discussion, we introduced PowerFin and outlined work on POSIX serial configuration, MAVLink flow control and a generic IIO inertial-sensor driver.

The output implementation shows another division of work: a dedicated parallel-bus peripheral on the SoC, supported by a kernel driver, generates DShot timing, with flexbus-dshot providing the PX4-side interface. The discussion also proposed further abstraction into a generic Linux DShot interface.

From AutopilotPi to PowerFin, our focus has expanded from whether an inexpensive Linux SoC can fly a small quadrotor to how PX4 can reliably use sensors, serial ports and outputs through interfaces that future boards can reuse.

A Parallel Path: Integrating Linux with Real-Time Processors ​

Snapdragon Flight, Intel Aero and VOXL 2 are important parts of the relationship between Linux and PX4.

Snapdragon Flight: QuRT Flight Control within a Linux Platform ​

Snapdragon Flight played an important role in PX4’s early POSIX expansion. The 2016 project update mentioned earlier even called it the first fully supported Linux target.

Looking at execution placement, however, the PX4 Snapdragon Flight guide is explicit: the PX4 flight stack runs on the DSP’s QuRT real-time operating system, with DSPAL providing POSIX-compatible interfaces.

Intel Aero: A Linux Compute Board with an STM32 Flight Controller ​

Intel Aero also appears frequently in discussions of Linux drones. The hardware description in the PX4 v1.12 guide clearly separates the roles: the Intel Aero Compute Board runs Linux, and a connected STM32 runs PX4 on NuttX.

This illustrates the difference between physical integration and execution architecture. Vision computing and flight control can form a compact platform while retaining a separate real-time flight controller.

VOXL 2: PX4 Spans Linux Services and a Real-Time DSP ​

VOXL 2 demonstrates a further form of heterogeneous integration. ModalAI’s architecture documentation explains that the QRB5165 application processor runs Linux, while most PX4 flight-control software, including critical real-time processing, runs on the sensor DSP under QuRT. Linux handles supporting tasks such as logging and MAVLink.

A voxl-px4 package or service on Linux therefore does not, by itself, locate the entire control loop. The software spans cooperating processors.

These platforms expanded PX4’s integration with vision, networking and application computing. Native Linux and heterogeneous flight controllers developed alongside one another, with different ways of assigning real-time work.

Why Does This Approach Keep Raising Engineering Challenges? ​

The platforms above demonstrate Linux participating in real flight control. The harder work is achieving predictable behavior across hardware, workloads and failures, then maintaining it over time.

Fast Average Computation Is Only Part of the Loop ​

Flight control depends on latency across the whole chain: when a sensor samples, when its data becomes available, when the control thread wakes, and when the result reaches an actuator.

As a purely illustrative example, a 500 Hz control loop has a 2 ms period. Low average CPU usage can coexist with occasional wake-up delays, bus waits or blocked output operations. The latency distribution and its outliers matter to closed-loop behavior.

The Linux kernel’s real-time preemption documentation explains how PREEMPT_RT reduces scheduling latency through preemptible locking, priority inheritance and threaded interrupts. Those mechanisms provide a foundation; a flight controller still needs appropriate thread priorities, driver behavior, resource management and workload testing.

A General-Purpose OS Still Needs Board-Specific Hardware Integration ​

Linux provides interfaces for SPI, I²C, serial ports and other buses. Sensor timestamps, sampling methods, buffering and motor-output paths still depend on drivers and hardware.

The PX4 community developed DriverFramework to make drivers reusable across operating systems and flight stacks. Its README records support scenarios in late 2016 including Linux/Navio2 and QuRT/Snapdragon. It reflects a persistent requirement: portable application code needs adapted hardware interfaces underneath it.

I/O coprocessors, PRUs, PWM expanders and proprietary DSP APIs all present different interfaces. Reusable drivers and clearly defined boundaries reduce the amount of adaptation needed for each new board.

Since 2024: Better Real-Time Linux Foundations, Continued Board Development ​

In 2024, PREEMPT_RT reached an important mainline-support milestone with Linux 6.12, as recorded in the Linux Foundation’s real-time kernel resources. For Linux flight controllers, this helps reduce the burden of maintaining a separate real-time patch set. Availability still depends on processor architecture, board support and kernel configuration.

Real-time Linux applications existed much earlier, as the history of Navio2 and other platforms shows. Mainlining changes how that infrastructure is obtained and maintained; each flight controller still needs validation across its complete control chain.

For Guanglun’s T113, our PowerFin and future boards, improvements in real-time Linux provide a stronger foundation to build on.

Timeline ​

PeriodEventSignificance
2015PX4 broadens POSIX platform support, explicitly recorded in the following year’s project updateGreater software reuse across Linux, QuRT and other targets
August 2016v1.4.1 release notes record RPi2 + Navio2 integration and flight testingDocumented real-flight validation of native Linux flight control
2017–2018BeagleBone discussions continue; the librobotcontrol port merges in August 2018Another combination of a Linux processor and dedicated I/O capabilities
November 2020AirPi2 is renamed PilotPi, adding an ARM64 target and CIContinued development of open hardware, system support and build maintenance
2022AutopilotPi publishes its V3s + FPGA design and stabilized coreless-quadrotor tests; Guanglun’s R329 branch includes Linux output changesDevelopers in China build dedicated Linux flight controllers around inexpensive SoCs
The later VOXL 2 approachLinux application processor and QuRT DSP share PX4 responsibilitiesSoC integration and native Linux control represent different architectural choices
2024PREEMPT_RT reaches the Linux 6.12 mainline-support milestoneImproved maintenance foundations for real-time Linux
March 2025Guanglun’s T113 branch records auxiliary-output and flight-test progressContinued development of dedicated boards running PX4 on Linux with MCU-assisted DShot
October 2026PowerFin and Linux PX4 adaptation work are discussed publiclyWork extends from individual boards toward shared IIO, serial and output interfaces

This is a development path spanning more than a decade: from portable software architecture, through real sensors and actuators, toward reusable drivers and closer system integration.

Sources checked on November 16, 2026. Dates refer to project updates, release notes and merged pull requests. Mainline documentation may change; commands and compatibility information for historical boards should be read alongside the relevant software versions.