1、下载PX4源码编译:
Ubuntu20.04或18.04下PX4(pixhawk)源码编译环境配置教程,及构建代码各种错误解决办法_px4源码编译-CSDN博客
2、 PX4错误解决:
The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
cd PX4-Autopilot
make px4_fmu-v3_default
3、安装编译Ardupilot飞控系统
更正为:git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git
参考:Branching and Committing — Dev documentation
Ardupilot的开发环境搭建(虚拟机 Ubuntu20.04 2024年3.20) - 小泽不秃头 - 博客园
ubuntu下ardupilot编译环境搭建与仿真_ubuntu 编译 ardipilot-CSDN博客
可以从最新版构建任意旧版本分支,请参考:
[Pixhawk] ardupilot源码windows编译教程_ardupilot windows-CSDN博客
4、错误(解决:使用更老版本,不使用最新版本)
编译ardupilot时问题记录_the python version is too old, expecting (3, 6, 9)-CSDN博客
注意ubuntu中pip2 pip的位置,对应python版本,否则报错pymavlink安装的时候报错
Ardupilot4.1.2的python环境3.6.9更新pip后可以通过
5、验证:./waf configure --board fmuv3
./waf copter
编译成功:
5、查看版本