目录

藻华自用资料四——无人机(ardupilot搭建)

2025.3.17

无人机Ardupilot开发环境的搭建

1.安装git

复制代码
sudo apt-get install git

2.登陆官方仓库

https://github.com/ArduPilot/ardupilot

建立工作目录

复制代码
mkdir fly

下载相关包

复制代码
git clone -b Copter-4.0.7 https://github.com/ArduPilot/ardupilot.git

创建分支(注意位置)

复制代码
git checkout -b Copter-4.0.7

查看分支:

复制代码
git branch

拉下子模块

复制代码
git submodule update --init --recursive

进入目录:

复制代码
cd fly/ardupilot/Tools
cd environment_install

运行脚本

复制代码
./install-prereqs-ubuntu.sh

单独安装失败的包

复制代码
sudo apt update
sudo apt install python3-pip python3-matplotlib python3-serial python3-scipy python3-opencv python3-empy
sudo apt install python3-opencv
pip3 install empy

测试开发环境

复制代码
./waf configure --board CubeBlack

如果报错:

/usr/bin/env: 'python': No such file or directory

则输入:

复制代码
sudo apt update
sudo apt install python3 python3-pip
sudo ln -s /usr/bin/python3 /usr/bin/python
./waf configure --board CubeBlack

仍然报错:

y@y:~/fly/ardupilot$ ./waf configure --board CubeBlack

Setting top to : /home/y/fly/ardupilot

Setting out to : /home/y/fly/ardupilot/build

Autoconfiguration : enabled

Setting board to : CubeBlack

Using toolchain : arm-none-eabi

Could not find the program ['arm-none-eabi-ar']

(complete log in /home/y/fly/ardupilot/build/config.log)

输入:

复制代码
sudo apt install gcc-arm-none-eabi
which arm-none-eabi-ar
./waf configure --board CubeBlack

成功

环境编译:

复制代码
./waf copter

环境搭建完成

本文是转载文章,点击查看原文
如有侵权,请联系 xyy@jishuzhan.net 删除
相关推荐
韩曙亮12 小时前
【3D 地图】无人机测绘制作 3D 地图流程 ( 无人机采集数据 | 地图原始数据处理原理 | 数据处理软件 | 无人机测绘完整解决方案 )
3d·无人机·3d地图·无人机测绘·地图测绘·测绘方案·地图数据采集
nuannuan2311a12 小时前
97A6-ASEMI无人机专用功率器件97A6
无人机
hao_wujing1 天前
一种改进的YOLOv11网络,用于无人机视角下的小目标检测
yolo·目标检测·无人机
moonsims1 天前
SPH Engineering - 无人机技术开发专家
无人机
nuannuan2311a1 天前
BT131-ASEMI无人机专用功率器件BT131
无人机
CoovallyAIHub1 天前
复杂背景下无人机影像小目标检测:MPE-YOLO抗遮挡与抗背景干扰设计
算法·计算机视觉·无人机
睿途低空新程2 天前
面向城市治理的AI集群空域融合模型
人工智能·经验分享·其他·无人机
AI的魔盒2 天前
基于Java与MAVLink协议的多无人机(Cube飞控)集群控制与调度方案问题
java·开发语言·无人机
电鱼智能的电小鱼3 天前
基于 EFISH-SBC-RK3588 的无人机智能巡检终端方案‌
无人机
UAV_ckesc3 天前
无人机动力核心测评:CKESC STONE 180A-M 电调
无人机·多旋翼无人机·无人机电调·无人机动力·垂起无人机