环境搭建:https://ardupilot.org/dev/docs/building-setup-linux.html

编译:https://github.com/ArduPilot/ardupilot/blob/master/BUILD.md

官方开发大全:https://ardupilot.org/dev/

环境说明:

系统:虚拟机ubuntu22.04.1 LTS

一,环境安装

sudo apt-get update 
sudo apt-get install git 
sudo apt-get install gitk git-gui
git clone https://github.com/your-github-userid/ardupilot 
cd ardupilot 
git submodule update --init --recursive
Tools/environment_install/install-prereqs-ubuntu.sh -y

二,编译板子名称定义:https://github.com/ArduPilot/ardupilot/blob/2ebba3ea997ccc92eb2bc07183719d45d32faed1/Tools/scripts/generate_manifest.py

cd ardupilot 
./waf configure --board CUAVv5 
./waf rover 



./waf clean