藻华自用资料四——无人机(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

环境搭建完成

相关推荐
YOLO数据集集合1 天前
无人机航拍街道巡检数据集 | 空中视角车辆检测、交通流量统计、违停识别、智能交通YOLO数据集10399期
深度学习·yolo·目标检测·无人机
渡之2 天前
GeoBridge 深度解析:语义锚定多视图基础模型,重塑无人机跨视角地理定位
深度学习·算法·动态规划·无人机
YOLO数据集集合2 天前
智慧林业航拍图像数据集 | 树木目标检测、病虫害识别、AI林业监测数据集10282
人工智能·深度学习·目标检测·计算机视觉·无人机
中讯慧通2 天前
微型无人机通信模块:低空链路核心,保障飞行与传输全程稳定
服务器·人工智能·机器人·无人机
GIS数据转换器2 天前
基于3D GIS的监控视频精准标定平台
人工智能·物联网·3d·音视频·无人机·知识图谱
无人机长了一个脑袋2 天前
无人机电调
无人机
阿木实验室3 天前
从科研平台到巡检现场,双品牌精彩亮相2026深圳无人机展
无人机·深圳无人机展
YOLO数据集集合3 天前
智能道路病害识别 公路巡检深度学习数据集实战 | 路面缺陷检测 无人机视觉 道路养护AI方案10299期
人工智能·深度学习·目标检测·无人机
海砥装备HardAus3 天前
无人平台数图共传链路的带宽分配与时序同步底层技术
无人机·数传·数图传
Deepoch3 天前
Deepoc VLA开发板:无人机近距接触式精细作业与贴壁导航
无人机·开发板·具身模型·deepoc