PX4-Autopilot 安装特定版本

PX4官方文档参考链接:

Get a Specific Release/Branchicon-default.png?t=N7T8https://docs.px4.io/main/en/contribute/git_examples.html#get-a-specific-release第三方参考链接:

Git giving warning: unable to rmdiricon-default.png?t=N7T8https://stackoverflow.com/questions/45215094/git-giving-warning-unable-to-rmdir

0. 概述

PX-Autopliot目前更新至v1.14(2024年6月9日)。本文参考官方文档给出下载历史版本(如v1.13)的方法。

1. 安装特定Release

  1. 下载PX4源码并切换至目录
    git clone https://github.com/PX4/PX4-Autopilot.git
    cd PX4-Autopilot
  2. 切换Release
    git checkout v1.13.3
  3. 更新子模块
    make submodulesclean

2. 安装特定Branch 

  1.  下载PX4源码并切换至目录
    git clone https://github.com/PX4/PX4-Autopilot.git
    cd PX4-Autopilot
  2. 获取想要的Branch
    git fetch origin release/1.13
  3. 切换到对应的Branch 
    git checkout release/1.13
  4. 更新子模块
    make submodulesclean

3. 重复利用已有的PX4-Autopilot程序包

在已有程序包的情况下,可以通过清除旧编译文件的方式重复利用之,无需下载新的程序包。在PX4-Autopilot目录下,运行:

make clean
make distclean

之后按照1或2操作即可。

4. 手动清除不兼容文件

从1.14版本切换至1.13版本时,可能出现警告信息:

Directory not empty

此时可根据提示手动清理对应的文件。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值