knowledge_map/phenix mini 开发环境.md
yewuya 5d69fbe3f2 Revert "文档更新"
This reverts commit 44e127967a4a94c927656daccd6216cc90aa9fb7.
2023-05-16 20:32:45 +08:00

51 lines
942 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# phenix mini 开发环境
* 下载代码
git clone http://192.168.195.106/root/flight_control.git
解压gcc 和modules
modules 文件夹移入.git 文件夹
gcc 文件夹移入etc/文件夹下(这部已经完成不需要做)
编辑.profile 文件
打开终端输入如下命令(rst为用户名自行替换)
```
vi /home/rst/.profile
```
在最后一行插入以下内容其中rst为用户名要根据自己用户名进行替换
```shell
export PATH=/etc/gcc-arm-none-eabi-7-2017-q4-major/bin:$PATH
```
保存退出之后运行一次.profile文件使修改生效终端执行如下命令
```sh
source .profile
```
之后使用cd进入到flight_control文件夹即可编译
编译命令
```cmake
make px4fmu-v4_default
```
windows 安装使用 MobaXterm 选择session vnc 输入IP和端口号之后输入密码
Mac 使用自带的屏幕共享 输入IP 192.168.3.124:5901 最后面的5901是端口号