版权声明:本文为博主原创博文,未经允许不得转载,若要转载,请说明出处并给出博文链接

 

Linux下编译:

1.    Windows下安装虚拟机,虚拟机中安装Ubuntu,打开终端(ctrl+alt+t), 进入root(sudo su, 输入密码)

2.    sudo apt-get-qq -y install git

3.    git clone https://github.com/ArduPilot/ardupilot.git (建议网络良好状态进行,一般速度较慢)

4.    cd ardupilot

5.    git submodule update --init –recursive(建议反复几次输入)

6.    Tools/scripts/install-prereqs-ubuntu.sh-y

7.    . ~/.profile

8.    Build Copter:cd ArduCopter

9.    make px4-v2

 

Windows下px4-console编译:

1.    下载应用程序pixhawk_toolchain_installer_latest,并安装

2.     下载Git工具,在git bash 界面输入git clone https://github.com/ArduPilot/ardupilot.git (建议网络良好状态进行,一般速度较慢)

3.    继续cd ardupilot

4.    接着git submodule update --init –recursive(建议反复几次输入)

5.    Build Copter:cd ArduCopter

6.    make px4-v2

7.    如果报错为: git: command not found 或者 Python:command not found 或者 其他的:command not found——>说明 需要 进行环境变量的配置  将相关路径添加进入 系统的环境变量添加进去 则可以 见下图所示(感谢 教授 帮助)

 

 

Windows下px4-eclipse编译:

1.    下载应用程序pixhawk_toolchain_installer_latest,并安装

2.    下载Git工具,在git bash 界面输入git clone https://github.com/ArduPilot/ardupilot.git 建议网络良好状态进行,一般速度较慢)

3.    继续cd ardupilot

4.    接着git submodule update --init –recursive(建议反复几次输入)

5.    剩余步骤见 http://ardupilot.org/dev/docs/editing-the-code-with-eclipse.html

6.    如出现同上述问题 , 解决方法 也同上。

 

已上方法均为作者亲身尝试,遇见的问题也分享了出来,如果有错误,还请指出,感谢大家多多指教!!!

 

 

相关ArduPilot的学习博客链接:

①   ArduPilot—ArduPlane 框架概述

②   TECS—ArduPilot—框架理解

③   ArduPilot—Arduplane 飞行模式

④   L1 control——ArduPilot——更新航点update_waypoint(一)

⑤   L1 control——ArduPilot——更新航点update_waypoint(二)

⑥   ArduPilot—AP_NavEKF3针对AP_NavEKF2做了哪些改进/变动?

 

Logo

更多推荐