PX4 vs ArduPilot: Drone Autopilot Flight Stacks Compared on Architecture, Licensing, Hardware and ROS 2
Most teams pick a drone autopilot the way they pick a text editor: whatever the first tutorial used. That habit gets expensive. The choice in px4 vs ardupilot decides your license obligations, how your ROS 2 code talks to the vehicle, which boards you can ship, and how much of the estimator you can safely touch. It is hard to reverse after a product has been certified, tuned and fielded.
The question is live again in late 2026. On 9 November, NXP announced a unified robotics platform with an open SDK that integrates PX4, Zephyr and ROS 2, anchored by a NavQ95 drone reference design. Meanwhile ArduPilot shipped its 4.7 series and PX4 is beta-testing v1.18. This post compares the two current stable stacks mechanism by mechanism, and finishes with a decision matrix by use case.
What this covers: release status, internal architecture, estimators, licensing and governance, hardware porting, ROS 2 and MAVLink integration, simulation, safety and Remote ID, a MAVSDK mission-upload example, and a use-case decision matrix.
Context and Background
In any PX4 vs ArduPilot discussion, start with shared history. Both projects descend from the same 2009-2013 open-hardware moment around the original Pixhawk and APM boards, and both still speak MAVLink. They have since diverged into two distinct engineering philosophies.
PX4 is the flight stack hosted by the Dronecode Foundation, a Linux Foundation project that also hosts the Pixhawk hardware standards, the MAVLink protocol, QGroundControl and MAVSDK. That bundling matters. One foundation governs the autopilot, the hardware reference designs, the wire protocol, the ground station and the app SDK. Corporate members fund it and sit on its board.
ArduPilot is an independent open-source project with its own developer team, governance and commercial partners programme. It is not part of Dronecode. Its codebase covers multicopters, fixed-wing aircraft, VTOL quadplanes, helicopters, ground rovers, boats, submarines (ArduSub) and antenna trackers from one repository.
The current release picture, verified for this article, looks like this:
- PX4 v1.17.0 is the latest stable release. GitHub published it on 13 May 2026, and the docs version selector marks v1.17 as “stable”.
- PX4 v1.18 is in beta. The release branch was cut from
mainon 26 June 2026, and the v1.18 release notes still carry a “Beta” badge and an “in beta testing” warning. - ArduPilot Copter 4.7.0 was released as stable on 22 July 2026, followed by Copter 4.7.1 on 3 September 2026. A 4.7.2 beta is in testing.
The hook for this piece is NXP. Its 9 November press release describes an open-source, modular robotics SDK with PX4, Zephyr and ROS 2 integration. The first drone reference design pairs a NavQ95 board (i.MX 95 applications processor) for autonomy compute and flight control with a Tropic VMU/FMU on an i.MX RT1064, a 100Base-T1 sensor node on an MCX N947 and an AM32-compliant ESC on an MCX A13. A silicon vendor betting on PX4 is a governance signal, and we return to it below.
If your companion computer will run ROS 2, you will also want our micro-ROS and XRCE-DDS agent tutorial, because both autopilots now use that same transport family to reach ROS 2.
PX4 vs ArduPilot: Architecture Compared Layer by Layer
Direct answer: PX4 is a set of independent modules that exchange typed messages over an internal publish/subscribe bus called uORB, normally on the NuttX RTOS, and is BSD-3 licensed. ArduPilot is a vehicle-centric C++ codebase built on a hardware abstraction layer (AP_HAL), normally on ChibiOS, and is GPLv3 licensed. Both use MAVLink to the ground.

Figure 1: PX4 vs ArduPilot internal architecture. PX4 decouples modules through the uORB bus; ArduPilot layers vehicle code over shared libraries and a hardware abstraction layer.
The left half of Figure 1 shows PX4 as a pipeline of loosely coupled modules: sensor drivers publish raw data, EKF2 subscribes and publishes a state estimate, the commander and navigator pick a flight mode and setpoints, and controllers feed a control allocator that maps torque and thrust demands to actuators. The right half shows ArduPilot: a vehicle directory (ArduCopter, ArduPlane, Rover, ArduSub) calls into shared libraries such as the attitude controllers and EKF3, which reach hardware only through the AP_HAL interface. That interface has a ChibiOS implementation for microcontroller boards, a Linux implementation, and a SITL implementation for simulation.
PX4: a message bus first, a flight controller second
PX4’s central design decision is uORB. Every module communicates through named topics with fixed message definitions kept in the msg/ directory of the source tree. A module does not call another module’s functions; it publishes or subscribes. That gives you three practical properties.
First, replacement is cheap. You can swap a controller or add a new estimator input without editing the publisher, provided you honour the topic contract. Second, the same topics can be exported off-board. The uXRCE-DDS bridge, covered below, literally generates ROS 2 interfaces from a YAML list of uORB topics. Third, logging is uniform. The logger subscribes to topics, so ULog files mirror the internal data flow, which makes post-flight analysis structurally consistent.
The cost is indirection. Tracing a behaviour means following topics across modules, and timing depends on scheduling of work queues rather than a single loop. PX4 runs on NuttX on Pixhawk-class flight management units, and it also targets Linux (for example on ModalAI VOXL 2, which v1.18 now packages as a Debian package). If you are evaluating the RTOS layer itself, our Zephyr vs FreeRTOS vs NuttX comparison explains why NuttX’s POSIX-style API suits PX4’s module model.
ArduPilot: vehicles first, abstraction underneath
ArduPilot inverts the emphasis. The vehicle is the unit of design: Copter has its own mode classes, Plane has its own TECS speed-height controller, Rover has its own steering logic. Shared behaviour lives in libraries with AP_ and AC_ prefixes, and every hardware access goes through AP_HAL. The scheduler runs a main loop at a vehicle-specific rate. The ArduPilot ROS 2 docs note that topic rates are capped by SCHED_LOOP_RATE, typically 400 Hz for Copter and 50 Hz for other vehicles.
This is less elegant than a bus, but it is easy to reason about for flight behaviour. A Copter mode is one class with defined entry, run and exit methods. Lua scripting sits on top: Copter 4.7 lets scripts implement custom flight modes, runs the scripting engine in protected mode so a script error cannot hard-fault the autopilot, and upgrades Lua to 5.3.6. That is a powerful field-customisation tool that PX4 has no direct equivalent for on the flight controller itself.
Estimators: EKF2 versus EKF3
Both projects use extended Kalman filters with inertial prediction and aiding from GNSS, barometer, magnetometer, airspeed, range finders, optical flow and external vision. The differences are in multiplicity and configuration.
ArduPilot runs EKF3 by default. The project switched its development branch to EKF3 in January 2021 ahead of the 4.1 release, with AHRS_EKF_TYPE selecting the active filter. EKF3 runs multiple “cores” (one per IMU) and can switch lanes when one core’s innovations look worse. Copter 4.7 extends this: cores can now run different sensor sources, lane switching can be forced through EK3_OPTIONS and EK3_PRIMARY, and the release notes report lower CPU, RAM and flash use.
PX4 uses EKF2, which also supports multiple instances (multi-EKF) and source selection by parameter. PX4 v1.17 reduced the default EKF2_MIN_RNG from 0.1 m to 0.01 m and removed EKF2_RNG_A_IGATE, and it enabled barometer auto-calibration against GNSS height by default (SENS_BAR_AUTOCAL). The beta v1.18 goes further: fusion sources become switchable at runtime over MAVLink, a new EKF2_SENS_EN bitmask replaces EKF2_EN_BOOT, GNSS lever-arm and delay parameters move to per-receiver SENS_GPS{0,1}_* sets, and the release notes say up to four external position sources can be fused.
The practical point: neither filter is “better” in the abstract. EKF3’s per-core source sets suit vehicles that must survive GNSS loss by falling back to beacons or vision. EKF2’s v1.18 runtime controls suit operators who want a ground station or companion to choose aiding sources in flight. For deeper background on the estimation trade-offs, see our multi-sensor fusion architecture guide.
Licensing, Governance and the Commercial Question
Direct answer: PX4 is BSD-3-Clause, so you may ship modified firmware without publishing your changes. ArduPilot is GPLv3, so if you distribute modified firmware you must provide its source, though closed-source code on a separate companion computer is explicitly accepted by the project.
In PX4 vs ArduPilot evaluations, this is the single most consequential difference for product companies, and it is often misunderstood in both directions.
What BSD-3 means for a PX4 product
The PX4 licence page states that all contributions must be made under the permissive BSD 3-clause licence and must not impose further constraints on use. In practice you keep the copyright notice and disclaimer, and you may not use contributors’ names to endorse your product. You can fork PX4, add a proprietary control law or a customer-specific failsafe, and ship it as a binary. That is why many enterprise drone makers and chip vendors standardise on PX4. NXP’s choice of PX4 for its SDK fits this pattern, although NXP’s release does not state its reasoning, so treat that as inference.
There is a catch. Permissive licensing removes the obligation to contribute back, which means private forks drift. Every closed fork becomes a rebasing project at each PX4 release, and v1.17 alone carried breaking parameter changes (RC deadzones, servo trims, MAVLink v1 defaults). The licence does not cost you anything; the fork maintenance does.
What GPLv3 means for an ArduPilot product
ArduPilot’s own licence page is unusually direct. Commercial use is allowed without asking permission. Companies that distribute products must tell customers the software is open source and provide the source or a link to it. The page also notes GPLv3’s upgradeability provision: on devices the manufacturer can update, customers must be able to install or replace ArduPilot firmware. It explicitly says you can run closed-source code on a companion computer alongside ArduPilot.
So the real architecture boundary under GPLv3 is the process and the processor. Keep proprietary perception, fleet logic and customer integrations on the companion computer, talking MAVLink or DDS. Keep flight-critical changes in the open, ideally upstreamed. Many ArduPilot partner companies follow exactly this model. Whether a specific arrangement (for example a proprietary Lua script shipped on the SD card) triggers source obligations is a legal question the project page does not answer, so get counsel rather than forum opinions.
Governance and long-term risk
Dronecode gives PX4 a foundation with paying members, a board, and formal hosting under the Linux Foundation. That tends to produce release processes, standards documents and vendor reference designs. The flip side is that roadmap influence correlates with membership.
ArduPilot’s governance is developer-led, funded through partners and donations, and organised around weekly public dev calls whose notes are posted on its forum. Its strength is breadth and continuity: one codebase has carried planes, copters, boats and submarines for over a decade. Neither model is risk-free, but both have shipped regular releases through 2026, which is the metric that matters most.
Hardware: Pixhawk Standards versus hwdef
Both stacks run on Pixhawk-family boards, but they think about hardware differently.
PX4 leans on the Pixhawk open standards maintained under Dronecode. The current set includes DS-009 (connector standard), DS-010 (autopilot bus), DS-012 (Autopilot v6X), DS-018 (Autopilot v6C) and DS-020 (Autopilot v6X-RT), plus a payload bus standard (DS-014). FMUv6X-RT is notable here because it moves the FMU to an NXP i.MX RT crossover MCU, and PX4 v1.17 builds Zenoh into the default FMU-v6xRT firmware. A board vendor that follows a standard gets a known pinout and a reference PX4 target.
ArduPilot is standards-agnostic and scales out through its hwdef system. Each board is a directory under libraries/AP_HAL_ChibiOS/hwdef containing a hwdef.dat file (pins, peripherals, storage, flash layout, parameter defaults) and a hwdef-bl.dat for the bootloader. The porting guide lists supported MCUs from STM32F405 through STM32H743 and H757, and sets a floor of 1 MB flash for flight-controller firmware; smaller MCUs can run AP_Periph as DroneCAN peripherals. Because a port is mostly a text file, ArduPilot supports a very long tail of low-cost FPV and hobby boards. Copter 4.7.1 alone added ARKV6S, CORVON_V5 and ORBITH743v2.
The practical PX4 vs ArduPilot difference on hardware is this. If you are designing a carrier board, PX4 plus a Pixhawk standard gives you a reference to conform to. If you are buying whatever H7 board is cheapest this quarter, ArduPilot probably already has a hwdef for it.
One hardware constraint cuts across both. ArduPilot’s ROS 2 DDS support is not in the standard build and should run only on H7-class boards; its docs say F4 and F7 boards lack the CPU. Budget for an H7 if ROS 2 is in your plan.
ROS 2 Integration: px4 ros 2 uxrce-dds versus AP_DDS and MAVROS
Both projects now expose a native ROS 2 interface through Micro XRCE-DDS, the same eXtremely Resource Constrained Environments protocol that micro-ROS uses. The client runs on the flight controller, an agent runs on the companion computer, and the agent republishes everything into the full DDS data space. The similarity ends there.

Figure 2: Three ROS 2 integration paths. PX4 exports uORB topics through uxrce_dds_client; ArduPilot exports a curated interface through AP_DDS; MAVROS bridges MAVLink for either stack.
Figure 2 shows the three paths side by side. On the left, PX4’s client generates its ROS 2 surface from uORB at build time. In the middle, ArduPilot’s AP_DDS library publishes a deliberately small, REP-style interface. On the right, MAVROS translates MAVLink into ROS 2 topics and services, which works with both autopilots but adds a protocol translation hop.
How the PX4 uXRCE-DDS bridge works
The PX4 docs describe the middleware as a client running on PX4 and an agent on the companion, exchanging data over serial or UDP. At build time a code generator reads src/modules/uxrce_dds_client/dds_topics.yaml and compiles support for exactly that subset of uORB topics into the uxrce_dds_client module. Outgoing topics appear under /fmu/out/..., and commands go in through /fmu/in/.... On the companion you install the matching px4_msgs package and start the agent, for example MicroXRCEAgent udp4 -p 8888 for SITL, which runs the client on localhost UDP port 8888 by default.
Configuration on hardware is parameter-driven. UXRCE_DDS_CFG selects the port (TELEM2, Ethernet or Wi-Fi), UXRCE_DDS_PRT and UXRCE_DDS_AG_IP set the UDP target, UXRCE_DDS_DOM_ID sets the DDS domain, UXRCE_DDS_KEY separates clients in multi-vehicle setups, and v1.17 added UXRCE_DDS_NS_IDX for index-based namespaces. The docs’ compatibility table pairs ROS 2 Humble with Micro-XRCE-DDS-Agent 2.4.2 and Jazzy with 2.4.3. The beta v1.18 adds a build option for Micro XRCE-DDS v3 and lists support for ROS 2 Lyrical Luth and Rolling.
Two details matter in production. First, the topic set is release-specific and compiled in, so your ROS 2 nodes are coupled to the PX4 version unless you use the PX4 ROS 2 message translation node, which handles versioned message definitions. Second, the docs now recommend a direct serial or dedicated Ethernet link and a localhost-scoped DDS participant (UXRCE_DDS_PTCFG, ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST), not a shared or wireless network. That is security advice, and you should follow it; our guide to ROS 2 QoS tuning for lossy Wi-Fi robot fleets explains why DDS discovery over Wi-Fi misbehaves.
On top of raw topics, PX4 ships a C++ ROS 2 Interface Library that lets you register external flight modes and send typed setpoints. v1.17 added FwLateralLongitudinalSetpointType for fixed-wing and VTOL in fixed-wing mode, and RoverSetpointTypes for rovers. In other words, PX4 lets ROS 2 code become a first-class flight mode, not just a guided-mode client.
How ArduPilot AP_DDS works
ArduPilot took the opposite design choice: a small, stable surface. Its ROS 2 interface page lists topics under ap/, including ap/navsat/navsat0, ap/battery, ap/imu/experimental/data, ap/pose/filtered, ap/twist/filtered, ap/geopose/filtered, ap/clock and ap/tf_static. Control inputs come in through ap/cmd_vel (REP-147 velocity), ap/joy and ap/cmd_gps_pose. Services include /ap/arm_motors, /ap/mode_switch, /ap/experimental/takeoff, /ap/prearm_check, and the standard parameter get and set services, so ros2 param works against the vehicle.
Custom messages live in ardupilot_msgs. The supported ROS 2 distribution on that page is Humble. Every topic can be enabled or disabled at compile time, and Copter 4.7 made publisher rates compile-time configurable, added RC and status messages, published all GPS instances and routed arming through external-control safety checks. On the companion, ArduPilot’s Raspberry Pi guide runs the micro-ROS agent with ros2 run micro_ros_agent micro_ros_agent serial -b 115200 -D /dev/ttyS0. Note again that DDS must be enabled through the custom build server and is recommended only on H7 boards.
Which ROS 2 model is better?
For ROS 2, the ArduPilot vs PX4 answer depends on who owns the flight logic. PX4’s model exposes internals: you get uORB-level data and can replace whole flight modes from ROS 2. That is ideal for research groups and companies building autonomy that must be tightly integrated with control. ArduPilot’s model exposes intent: arm, switch mode, go to a pose, follow a velocity. That keeps ROS 2 code at arm’s length from flight-critical internals, which many safety reviewers prefer.
MAVROS remains a valid third path for both stacks, especially for teams with existing ROS 1 code or ground-station-style workflows. Its cost is a translation layer and MAVLink’s message granularity. If you are also weighing Zenoh, PX4 v1.17’s in-tree Zenoh middleware is marked experimental, and our ROS 2 DDS vs Zenoh comparison covers the trade-offs at the middleware level.
MAVLink, Ground Stations and the MAVSDK Ecosystem
MAVLink is the lingua franca of both stacks: a compact binary protocol with versioned message definitions, a mission microservice, a parameter microservice and command acknowledgements. Both projects speak MAVLink 2. PX4 v1.17 changed MAV_PROTO_VER to default to version 2, with v1 only as opt-in, and the v1.18 beta makes message signing spec-compliant and removes the old MAV_SIGN_CFG parameter.
The tooling around MAVLink differs. PX4 sits inside the Dronecode toolchain: QGroundControl and MAVSDK are developed under the same foundation and tested primarily against PX4. ArduPilot’s ecosystem centres on Mission Planner, MAVProxy and pymavlink, and QGroundControl also supports it. MAVSDK can talk to ArduPilot, but its plugins are designed against PX4 behaviour, so verify each plugin you rely on in ArduPilot SITL before committing.

Figure 3: The MAVLink mission microservice handshake used by MAVSDK. The autopilot pulls items one at a time and acknowledges the complete plan before arming and starting.
Figure 3 shows why mission uploads are robust over lossy radios. The client announces the count, the autopilot requests each item by sequence number, and only a final acknowledgement makes the plan active. A dropped packet causes a re-request, not a corrupted mission.
A short MAVSDK-Python mission upload
One 2026 change will trip up copy-pasted tutorials. On PyPI, mavsdk 4.x is now a new binding that calls the MAVSDK C++ library directly, without gRPC or a separate mavsdk_server, and it has a different API. The long-standing gRPC-based MAVSDK-Python API continues as the mavsdk-grpc package, imported as mavsdk_grpc. The example below follows the upstream MAVSDK-Python repository’s mission example for that gRPC API, trimmed to two waypoints, and targets PX4 SITL on UDP 14540.
# pip install mavsdk-grpc (the gRPC API; mavsdk>=4 is a different binding)
import asyncio
from mavsdk_grpc import System
from mavsdk_grpc.mission import MissionItem, MissionPlan
def wp(lat, lon, alt_m=25, speed_ms=10):
# Positional fields follow the upstream example: lat, lon, rel. altitude,
# speed, fly-through, gimbal pitch/yaw, camera action, loiter time,
# photo interval, acceptance radius, yaw, photo distance, vehicle action.
nan = float("nan")
return MissionItem(lat, lon, alt_m, speed_ms, True, nan, nan,
MissionItem.CameraAction.NONE, nan, nan, nan, nan, nan,
MissionItem.VehicleAction.NONE)
async def run():
drone = System()
await drone.connect(system_address="udpin://0.0.0.0:14540")
async for state in drone.core.connection_state():
if state.is_connected:
break
plan = MissionPlan([wp(47.398039860, 8.545572540),
wp(47.398036222, 8.545014644)])
await drone.mission.set_return_to_launch_after_mission(True)
await drone.mission.upload_mission(plan)
async for health in drone.telemetry.health():
if health.is_global_position_ok and health.is_home_position_ok:
break
await drone.action.arm()
await drone.mission.start_mission()
asyncio.run(run())
Run this only in simulation first. Against ArduPilot SITL, check connection ports and mission behaviour individually, because the default ports and some mission semantics differ between the stacks.
Simulation, Testing and Release Engineering
Both projects treat software-in-the-loop (SITL) simulation as a first-class workflow, and both integrate with Gazebo.
PX4 SITL starts with one command, for example make px4_sitl gz_x500, and v1.17 added Gazebo Jetty support and an Ackermann variant of SIH, PX4’s lightweight simulation-in-hardware mode that runs physics on the flight controller itself. The v1.18 beta adds published Docker SITL images and a px4bench hardware bench-test suite that flashes a real board over USB, runs boot, storage, parameter and serial-loopback checks, and can fly an SIH auto mission on the FMU, producing machine-readable reports. For a manufacturer qualifying firmware on its own boards, that is a meaningful step towards repeatable release testing.
ArduPilot’s SITL is equally mature and has a long history of physics backends, including a Gazebo plugin and its own built-in models. Its HAL design makes SITL a natural target: the same vehicle code runs against a simulated HAL. ArduPilot also maintains an autotest suite that flies scripted scenarios in SITL on every change.
For hardware-in-the-loop (HITL), both stacks support running the real flight controller against simulated sensors, though in practice most teams now prefer SITL for logic and SIH or bench tests for timing. If you are choosing a simulator alongside the autopilot, our Isaac Sim vs Gazebo vs MuJoCo comparison covers sensor fidelity and sim-to-real concerns.
Release engineering has also become a supply-chain question. The PX4 v1.18 beta is the first PX4 release to generate an SPDX 2.3 software bill of materials for every firmware build. For teams facing the EU Cyber Resilience Act, that is a concrete compliance input; see our CycloneDX vs SPDX SBOM guide for what to do with it. ArduPilot did not advertise an equivalent per-build SBOM in the 4.7 release notes reviewed for this article; that is not the same as saying none exists, so check before you rely on either.
Safety, Geofence, Failsafes and Remote ID
Both stacks implement the same safety primitives: pre-arm checks, battery, RC-loss and data-link-loss failsafes, inclusion and exclusion geofences, return-to-launch, and flight termination. The differences are in configuration style and in what changed recently.
PX4 consolidates failsafe logic in the commander module, with a failsafe state machine and a simulator in the docs to preview actions. v1.17 renamed termination interfaces (commander lockdown on became commander termination, FORCE_FAILSAFE became TERMINATION), which will break old test scripts. The v1.18 beta adds in-flight failsafes for losing Remote ID, GNSS or a parachute, and reworks pilot override so the pilot regains control based on stick speed rather than deflection (MAN_OVERRIDE_SPD replaces COM_RC_OVERRIDE and COM_RC_STICK_OV).
ArduPilot configures failsafes per vehicle with FS_ parameters and fences with FENCE_ parameters, and Lua scripts can add bespoke checks. Copter 4.7 changes many parameters to SI units, and the release notes warn that ATC_INPUT_TC should be reduced by about a third after upgrading. Upgrades that rescale parameters are where tuned vehicles get hurt, so treat a 4.6 to 4.7 move as a re-tune.
Remote ID is where product teams should look closely. ArduPilot supports OpenDroneID modules over MAVLink or DroneCAN and maintains ArduRemoteID, its own firmware for ESP32-S3 and C3 boards. Its docs say a special production autopilot build is needed to enable OpenDroneID, one that blocks non-compliant firmware from being loaded through normal uploaders and adds tamper protection. PX4 supports Remote ID through COM_ARM_ODID, which gates arming on a Remote ID heartbeat, and the v1.18 beta extends it to trigger Return, Land or Terminate if the heartbeat is lost in flight. Neither project certifies your aircraft; compliance with FAA Part 89 or EU rules is the manufacturer’s job.
PX4 vs ArduPilot Decision Matrix by Use Case

Figure 4: A decision tree for choosing between the two drone autopilot software stacks. Licensing and ROS 2 depth decide most cases; airframe breadth and Lua scripting decide the rest.
Figure 4 encodes the order in which the questions should be asked. Licence first, because it is the only constraint you cannot engineer around. ROS 2 depth second, because it shapes your software architecture. Airframe and payload third, because both stacks fly standard quadcopters well.
| Criterion | PX4 (v1.17 stable, v1.18 beta) | ArduPilot (Copter 4.7.1) |
|---|---|---|
| Licence | BSD-3-Clause; closed forks allowed | GPLv3; distributed firmware needs source |
| Governance | Dronecode, a Linux Foundation project | Independent project with partners programme |
| Core architecture | uORB pub/sub modules | Vehicle code over AP_HAL libraries |
| Typical RTOS | NuttX; Linux targets | ChibiOS; Linux HAL; SITL HAL |
| Estimator | EKF2, multi-instance | EKF3 default since 4.1, multi-core lanes |
| ROS 2 path | uXRCE-DDS, compiled-in uORB topics, ROS 2 Interface Library | AP_DDS curated ap/ interface, custom build, H7 boards |
| On-board scripting | No Lua equivalent on FMU | Lua 5.3.6, custom flight modes |
| Hardware model | Pixhawk DS standards | hwdef text files, long board tail |
| Vehicle breadth | Multicopter, fixed-wing, VTOL, rover, others | Copter, Plane, QuadPlane, heli, Rover, boat, Sub |
| SBOM | SPDX 2.3 per build from v1.18 | Not stated in 4.7 notes reviewed |
The table compresses a lot. Below is how it plays out for four common programmes.
| Use case | Recommended default | Why | Watch out for |
|---|---|---|---|
| Enterprise product with proprietary flight features | PX4 | BSD-3 allows closed changes; Pixhawk standards and vendor SDKs such as NXP’s | Fork maintenance at each release |
| University or lab research on autonomy | PX4, ArduPilot close second | ROS 2 external modes and uORB access suit control research | Version coupling of px4_msgs |
| Agricultural spraying and survey | ArduPilot | Broad payload, sprayer and terrain features, Lua for custom logic | GPL source obligations if you modify firmware |
| VTOL fixed-wing hybrid | Either; prototype both | ArduPilot QuadPlane is mature; PX4 has VTOL and new fixed-wing ROS 2 setpoints | Transition tuning differs completely |
These recommendations are the author’s judgment based on the verified feature sets above, not benchmark results. No controlled, like-for-like flight-performance benchmark between current releases was found during research, and any claim that one stack “flies better” should be read as anecdote unless it comes with logs and identical airframes.
Trade-offs, Gotchas, and What Goes Wrong
Most failed PX4 vs ArduPilot decisions trace back to one of the following mistakes rather than to flight performance.
Treating the licence as a footnote. The most expensive mistake is starting on ArduPilot, modifying the flight code for a customer, and discovering at launch that distribution triggers GPLv3 source obligations. The reverse mistake also happens: teams choose PX4 for its licence and then never upstream anything, accumulating a private fork that takes weeks to rebase. Decide your contribution policy on day one.
Assuming ROS 2 topics are stable across releases. PX4’s ROS 2 surface is compiled from dds_topics.yaml and uORB definitions for a specific release. Upgrading firmware without updating px4_msgs produces silent mismatches or missing topics. Use the matching px4_msgs tag and the message translation node, and pin both in CI. ArduPilot marks several interfaces as experimental and says ABI stability is intended only within a minor release.
Running DDS on an underpowered board. ArduPilot is explicit that F4 and F7 boards cannot run DDS. PX4 is more permissive, but a busy FMU exporting dozens of high-rate topics over a 921600-baud UART will saturate the link. Start with the minimum topic set and measure.
Upgrading tuned vehicles blindly. Copter 4.7 renamed and rescaled parameters to SI units, erases logs on LittleFS boards during upgrade, and initially shipped with Simple and Super Simple modes having no effect (fixed in 4.7.1). PX4 v1.17 removed the hardcoded RC deadzone and did not migrate servo trims. Both stacks publish upgrade guides; read them line by line and re-fly a test card after every upgrade.
Copying old MAVSDK code. As shown above, pip install mavsdk now pulls a different API. Pin mavsdk-grpc or mavsdk<4 for existing code, or migrate deliberately.
Exposing DDS on a shared network. Both bridges republish the vehicle into the DDS graph. Without localhost-scoped discovery or SROS 2, anything on the same Wi-Fi can see and potentially command the vehicle. Our SROS 2 security guide explains enclaves and access control.
Mixing stacks in a fleet. Running both autopilots in one fleet doubles your tuning, logging (ULog versus DataFlash) and failsafe-validation effort. MAVLink hides some differences at the ground station, but mission semantics, mode names and parameter sets diverge. Standardise per product line.
Practical Recommendations
For a PX4 vs ArduPilot decision, start with constraints, not features. Write down three facts before touching firmware: whether you will distribute modified flight code, which interface your autonomy team will use (ROS 2 topics, ROS 2 flight modes, or MAVLink), and which airframe and payload you are flying. Those three answers settle most px4 vs ardupilot decisions in under an hour.
Then prototype both in SITL for one sprint. Both stacks run in Gazebo, both speak MAVLink, and both can be driven from ROS 2. Fly the same mission, inject the same GNSS dropout, and compare how each estimator and failsafe responds. That week of work is cheap insurance against a decision you will live with for years.
For production, pin versions aggressively. Use PX4 v1.17 for anything shipping this quarter and track v1.18 in a test branch; its SBOM, MAVLink signing and Remote ID failsafes are worth planning for. On ArduPilot, Copter 4.7.1 is the current stable; budget a re-tune if you are coming from 4.6.
Checklist:
- [ ] Licence decision and contribution policy written and approved by legal.
- [ ] Flight controller class chosen (H7 if ArduPilot DDS is required).
- [ ] ROS 2 integration path chosen: uXRCE-DDS, AP_DDS or MAVROS.
- [ ] Message package and agent versions pinned with firmware version.
- [ ] DDS discovery scoped to localhost or secured with SROS 2.
- [ ] SITL regression suite with GNSS-loss and link-loss scenarios.
- [ ] Remote ID module, production build and failsafe behaviour validated.
- [ ] Upgrade guide reviewed and test card re-flown after every release.
Frequently Asked Questions
Is PX4 or ArduPilot better for beginners?
For a hobbyist with an off-the-shelf frame, ArduPilot is often easier: Mission Planner guides setup, the wiki is extensive, and almost every cheap H7 or F4 board already has a hwdef port. PX4 is friendlier for developers who want to write code, because its module structure, QGroundControl integration and ROS 2 Interface Library are designed for extension. Neither is “beginner-only”. Pick ArduPilot if you mainly want to fly and tune, and PX4 if you mainly want to program the vehicle.
Can I use ArduPilot in a commercial drone product?
Yes. ArduPilot’s licence page states that commercial use is allowed without asking permission. Under GPLv3 you must tell customers the firmware is open source and provide the source or a link to it, including any modifications you distribute. The project explicitly accepts closed-source code running on a separate companion computer. Many partner companies follow that split. For edge cases, such as proprietary scripts shipped with the firmware, consult a lawyer rather than relying on forum answers.
Does ArduPilot support ROS 2 natively?
Yes, through the AP_DDS library and Micro XRCE-DDS. It publishes a curated set of ap/ topics such as pose, twist, battery and GNSS, and offers services for arming, mode switching, takeoff and parameters. DDS is not in the standard firmware build, so you enable it through the custom build server, and the docs recommend H7 boards only. The documented ROS 2 distribution is Humble. MAVROS remains an alternative path over MAVLink.
What is the PX4 uXRCE-DDS bridge?
It is PX4’s native ROS 2 link. The uxrce_dds_client module on the flight controller exports the uORB topics listed in dds_topics.yaml, and the Micro XRCE-DDS Agent on a companion computer republishes them into ROS 2 under /fmu/out and accepts commands under /fmu/in. It runs over serial or UDP, configured by UXRCE_DDS_* parameters. You build your ROS 2 nodes against the matching px4_msgs version, and can register full flight modes using the PX4 ROS 2 Interface Library.
Do PX4 and ArduPilot both use MAVLink?
Yes. Both use MAVLink 2 as their ground-station and companion protocol, including the mission, parameter and command microservices. That lets QGroundControl, MAVROS and many companion tools work with both. However, mode names, parameter sets and some mission behaviours differ, and SDKs such as MAVSDK are developed primarily against PX4. Test every MAVLink workflow you depend on against the specific stack and release, ideally in SITL first.
Which autopilot is the latest stable version in 2026?
As of 23 November 2026, PX4 v1.17.0 is the latest stable release, published in May 2026, with v1.18 in beta testing. ArduPilot’s latest stable Copter release is 4.7.1, released on 3 September 2026, following 4.7.0 in July; a 4.7.2 beta is in testing. Always confirm against the official release pages before flashing production hardware, because point releases land frequently.
Further Reading
- micro-ROS architecture and XRCE-DDS agent tutorial — the transport both autopilots use to reach ROS 2.
- Zephyr vs FreeRTOS vs NuttX for industrial firmware — the RTOS layer under PX4 and NXP’s SDK.
- ROS 2 DDS vs Zenoh middleware comparison — context for PX4’s experimental Zenoh path.
- Multi-sensor fusion architecture for autonomous robots — background for EKF2 and EKF3 design choices.
- PX4 v1.17 release notes — official upgrade guide and changes.
- ArduPilot ROS 2 interfaces — the official AP_DDS topic and service list.
By Riju — about
