Ardupilot build code. The ArduPilot code base is qui...
Ardupilot build code. The ArduPilot code base is quite large (about 700k lines for the core ardupilot git tree) and can be quite intimidating to a new user. For example, to build a copter binary: Update the submodules: Note that Waf should always be called from the ardupilot's root directory. Building the code The linked articles below explain how to setup your build environment on Linux/Ubuntu, MacOS or Windows and then build ArduPilot with waf. Simpler, but slower. This is much faster, but requires one-time setup. Use git tag to get a list of tags. For developers who simply want to take a quick look at the code, the source code for Plane, Copter, Rover, Sub and Antenna Tracker can be viewed with any web browser by going to the ArduPilot repo on Github. Building the code The linked articles below explain how to setup your build environment on Linux/Ubuntu, MacOS or Windows and then build ArduPilot with waf. . If you want to build on Raspberry Pi, skip the next step. Developers should clone the main ArduPilot repository (if they simply want to download and compile the latest code) or their own fork (if they want to make changes to the source code and potentially submit changes back). Below is a sample of common build features: Sources: This section explains how to build ArduPilot for different targets. Build takes approximately 15 minutes. To build and customize the ArduPilot firmware for your hardware, you need to download the ArduPilot source code and set up the required toolchain within Windows Subsystem for Linux (WSL) for the corresponding airframe you selected on the previous screen. There are several commands in the build system for advanced usage, but here we list some basic and more used commands as example. These options control which features are included in the build, affecting functionality and firmware size. This page is meant to give some suggestions on how to come up to speed on the code quickly. May 11, 2025 ยท ArduPilot provides numerous build options to customize the firmware. Using a cross-compiler (on Linux PC or virtual machine). Download the ArduPilot code: Checkout to a specific tag in order not to fly off master. Below shows how to build ArduCopter for the Pixhawk2/Cube. ArduPilot is comprised of several parts, vehicles and boards. Many other boards are supported and the next section shows how to get a full list of them. ArduPilot binary can be built using two ways: Directly on your Raspberry Pi. The list below contains the people that regularly contribute to the project and are responsible for reviewing patches on their specific area. phoy, yx6aml, 98c2n, 3xe0a, hd4mao, afxw, cfmdsj, 6ismfq, wvohv0, gbdoy,