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

环境搭建完成

相关推荐
max50060015 小时前
基于桥梁三维模型的无人机检测路径规划系统设计与实现
前端·javascript·python·算法·无人机·easyui
云卓SKYDROID2 天前
无人机智能返航模块技术分析
人工智能·数码相机·无人机·高科技·云卓科技
Cprsensors7 天前
压力传感器选型铁三角:介质·安全·精度
人工智能·机器人·无人机
EriccoShaanxi7 天前
无人机如何靠陀螺仪保持稳定飞行?
车载系统·无人机
AI科技分享7 天前
仅需8W,无人机巡检系统落地 AI 低空智慧城市!可源码交付
人工智能·无人机·智慧城市
云卓SKYDROID7 天前
无人机SN模块运行与功能详解
人工智能·无人机·科普·高科技·云卓科技
无线图像传输研究探索8 天前
无人机图传的得力助手:5G 便携式多卡高清视频融合终端的协同应用
5g·音视频·无人机·无线图传·5g单兵图传·单兵图传·无人机图传
云卓SKYDROID9 天前
无人机遥控器波特率技术解析
无人机·通道·遥控器·波特率·高科技·云卓科技
无线图像传输研究探索9 天前
突破距离桎梏:5G 高清视频终端如何延伸无人机图传边界
5g·无人机·无线图传·5g单兵图传·单兵图传·无人机图传
2501_924748249 天前
无人机光伏巡检效率提升68%!陌讯动态融合算法实战解析
算法·目标检测·计算机视觉·无人机