ArduPilot

On this page 7

ArduPilot is an open-source autopilot software suite that runs on a flight controller and controls unmanned vehicles, including multicopters, fixed-wing aircraft, helicopters, ground rovers, boats and submarines. Within drone software & autonomy, it is one of the two dominant open autopilot platforms, alongside PX4, and provides everything from attitude stabilization to fully autonomous missions.

The project grew out of the Arduino-based ArduPilotMega boards around 2009 and has since become a mature, vendor-neutral codebase written in C++, released under the GPLv3 license and maintained by a global community of developers and companies. It is used by hobbyists, universities, agricultural operators, survey firms and defense contractors, which makes it one of the most widely deployed autopilots in the world.

How ArduPilot controls a vehicle

ArduPilot works as a layered control system that turns sensor data and pilot or mission commands into motor and servo outputs many hundreds of times per second. Sensor drivers read the IMU, barometer, compass, GNSS receiver and optional rangefinders; a state estimator fuses these readings into an estimate of position, velocity and attitude; and cascaded controllers compute the outputs needed to follow the desired trajectory.

The estimator is an Extended Kalman Filter, currently EKF3, which can run several instances in parallel on separate IMUs and switch to the healthiest one when a sensor fails. Above it sit PID-based attitude and position controllers, and above those the flight mode logic that decides what the vehicle should do. The software runs on top of the ChibiOS real-time operating system on most flight controllers, or on Linux boards.

The table below shows the main software layers and their responsibilities.

LayerResponsibilityExample elements
Hardware abstraction layerIsolates code from the specific boardChibiOS, Linux, SITL backends
Sensor driversRead raw measurementsIMU, GNSS, compass, airspeed
State estimationFuse sensors into a navigation solutionEKF3 with lane switching
ControllersTrack attitude, rate and position targetsCascaded PID loops
Flight modesTranslate intent into targetsLoiter, Auto, RTL, Guided
CommunicationExchange telemetry and commandsMAVLink, DroneCAN
Main layers of the ArduPilot control stack

Vehicle firmware types and flight modes

ArduPilot is distributed as separate firmware builds for each vehicle class, all sharing the same core libraries. This design lets one codebase serve very different machines while giving each its own tuned control logic and parameter set.

FirmwareVehicle classTypical use
CopterMulticopters and traditional helicoptersMapping, inspection, filming
PlaneFixed-wing and VTOL aircraftLong-range survey, delivery
RoverGround vehicles and boatsAgriculture, surface mapping
SubRemotely operated underwater vehiclesHull and pipeline inspection
Blimp and AntennaTrackerAirships and ground antenna mountsResearch, telemetry tracking
ArduPilot firmware variants

Each firmware offers flight modes ranging from manual to fully autonomous. In multicopters, Stabilize keeps the aircraft level but leaves throttle to the pilot, Loiter holds a GPS position, Auto flies a preloaded waypoint mission, RTL returns to launch, and Guided accepts real-time position targets from a ground station or a companion computer. This graded autonomy is what allows the same aircraft to be flown by hand and then sent on an unattended survey.

ArduPilot compared with PX4 and proprietary autopilots

ArduPilot and PX4 are the two leading open-source autopilots, and both speak MAVLink and run on Pixhawk-class hardware, yet they differ in licensing, governance and design philosophy. Proprietary systems, such as those in consumer camera drones, offer polish but little or no access to the control code.

AspectArduPilotPX4Proprietary autopilot
LicenseGPLv3, copyleftBSD 3-clause, permissiveClosed source
GovernanceIndependent community projectDronecode FoundationSingle manufacturer
Vehicle coverageVery broad, including Sub and BlimpBroad, focused on air vehiclesUsually one product line
Configuration depthOver a thousand parametersExtensive, more modularLimited to app settings
Typical ground stationMission Planner, QGroundControlQGroundControlVendor app such as DJI Pilot 2
ArduPilot, PX4 and closed autopilots side by side

The license matters commercially. Under the GPLv3, companies that distribute modified ArduPilot firmware must provide their source code, which keeps improvements in the community; the permissive PX4 license allows closed derivatives. Neither autopilot is objectively superior, and the right choice depends on vehicle type, tooling and business model.

Ground stations, simulation and integration

ArduPilot is configured and monitored through a ground control station that communicates over the MAVLink protocol. Mission Planner, a Windows application closely associated with the project, offers deep parameter access, tuning tools and log analysis, while QGroundControl provides a cross-platform alternative used across both open autopilots.

For development and training, SITL (software in the loop) runs the real ArduPilot code on a desktop computer against a simulated vehicle, so missions, scripts and parameter changes can be tested without risk. Onboard Lua scripting lets operators add custom behaviors without recompiling firmware, and a companion computer running MAVROS or MAVSDK can send Guided-mode commands for computer vision, obstacle avoidance or swarm experiments.

TaskToolBenefit
Initial setup and calibrationMission Planner or QGroundControlGuided sensor and radio calibration
Mission designWaypoint editor in the ground stationSurvey grids and corridor patterns
Testing without hardwareSITL simulationSafe, repeatable experiments
Custom behaviorOnboard Lua scriptsNo firmware rebuild required
Post-flight analysisDataflash logs and log viewersDiagnose vibration, tuning and failures
Typical ArduPilot tools by task

Limitations and common mistakes

ArduPilot’s flexibility is also its main difficulty: the steep configuration burden means that a poorly set up vehicle can behave dangerously even though the software itself is reliable. Most incidents trace back to integration errors rather than code defects.

  • Skipping calibration of the accelerometer or compass leads to drift and toilet-bowling in Loiter.
  • Excessive vibration corrupts IMU data and can trigger EKF failsafes or uncontrolled climbs.
  • Unconfigured failsafes for radio, battery or GCS loss leave the vehicle without a safe response.
  • Copying parameters from a different airframe produces unstable tuning.
  • Ignoring flight logs hides early warnings such as rising motor imbalance or GNSS glitches.

Regulatory compliance is not automatic either. ArduPilot provides tools such as geofencing and Remote ID support, but the operator remains responsible for airspace rules and certification, and the software is not certified as a manned-aviation product.

The short version

ArduPilot is the brain software of a drone or robot vehicle. It reads sensors that tell it where it is and which way it is tilted, then constantly adjusts the motors to keep the vehicle steady and on course.

It is free and open, so anyone can use, inspect and improve it. With it, a pilot can fly by hand, ask the drone to hold still in the air, or plan a route on a map and let the vehicle fly the whole mission by itself.

Where it makes a difference

A regional agricultural cooperative needs regular crop health maps for 400 hectares of fields. Instead of buying a closed survey platform, its technicians build a fixed-wing VTOL aircraft on a Pixhawk-class flight controller running ArduPilot Plane, with a multispectral camera triggered by the autopilot at set distance intervals.

The team rehearses every mission in SITL, then plans survey grids in Mission Planner with 75 percent image overlap at 120 meters altitude. The aircraft takes off vertically, transitions to forward flight, covers about 150 hectares per flight and lands automatically at its launch point, with geofences and battery failsafes configured. Over one season, the cooperative maps all fields weekly at a fraction of the cost of a proprietary system and adapts the setup itself, which shows the practical value of open autopilot software.