ubuntu18.04linux装px4
时间: 2023-10-19 18:34:35 浏览: 154
您好!要在Ubuntu 18.04上安装PX4,您可以按照以下步骤进行操作:
1. 打开终端并更新软件包列表:
```
sudo apt update
```
2. 安装依赖项:
```
sudo apt install git zip qtcreator cmake build-essential genromfs ninja-build exiftool
```
3. 克隆PX4代码库:
```
git clone https://github.com/PX4/Firmware.git --recursive
```
4. 进入Firmware目录:
```
cd Firmware
```
5. 选择要构建的目标(例如Pixhawk):
```
make px4_fmu-v3
```
6. 构建固件:
```
make
```
7. 在QGroundControl中测试固件:
- 在浏览器中打开https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html并下载适用于Ubuntu的QGroundControl。
- 解压缩下载的文件并运行QGroundControl。
- 将Pixhawk连接到计算机,并在QGroundControl中选择正确的串口。
这些步骤应该能够帮助您在Ubuntu 18.04上成功安装PX4。如果您遇到任何问题,可以随时向我提问!
阅读全文
相关推荐















