px4-Autopilot是目前最流程的无人驾驶类开源项目,社区在持续活跃状态,国内很多无人机公司都是以此为基础进行订制后形成了自己的产品。
此系列文档会对PX4 Autopilot主要组件进行源码分析,在此之前我们先准备工作环境。
源码地址
px4 autopilot源码本身托管在github上, 项目地址为:
https://github.com/PX4/PX4-Autopilot
限于国内对github访问速度较慢, 大家可以通过gitee中的镜像获取相关代码:
https://gitee.com/yinfenghang/px4-autopilot
gitee镜像中为本次代码分析专门建立了一个分支: px4-study
下载
通过git命令从github或gitee上下载px4 autopilot代码:
git clone https://github.com/PX4/PX4-Autopilot.git
git checkout -b master origin/master
git submodule update --init --recursive
或
git clone https://gitee.com/yinfenghang/px4-autopilot.git
git checkout -b study origin/px4-study
git submodule update --init --recursive