模吧

 找回密码
 立即注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

748查看 | 1回复

ubuntu下编译openpilot

[复制链接]
发表于 2015-11-12 14:02:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Openpilot  是CC3D 原生固件,下面实践如何编译生成

1)首先准备 git  和arm toolchain, 参照"Ubuntu下编译 ardupilot" http://blog.csdn.net/span76/article/details/49782015

2)下载openpilot源代码
git clone https://github.com/openpilot/OpenPilot.git

3)准备qt
如果你按照官方文档(https://github.com/openpilot/OpenPilot),使用下面的命令可能等很长时间,也编译得到自己不想要的东西

make all_sdk_installmake all

我实践用的下面的步骤
sudo apt-get install p7zip-full
make qt_sdk_install   
因为qt_sdk 500+M,所以还是很花时间

之后运行 ( fw mean firmware)
make all_fw   

就得到所以的fw
./build/fw_gpsplatinum/fw_gpsplatinum.elf
./build/fw_simposix/fw_simposix.elf
./build/fw_osd/fw_osd.elf
./build/fw_oplinkmini/fw_oplinkmini.elf
./build/fw_revoproto/fw_revoproto.elf
./build/fw_revolution/fw_revolution.elf
./build/fw_discoveryf4bare/fw_discoveryf4bare.elf
./build/fw_coptercontrol/fw_coptercontrol.elf

如果你不明白 make 后面可以跟那些命令
直接输出 make 回车,会有提示

发表于 2015-11-12 19:03:26 | 显示全部楼层
给个赞
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|关于模吧|APP下载|广告报价|手机版|企业会员|商城入驻|联系我们|模吧 ( 黔ICP备2022002348号-1 )

© 2013-2020 Moz8.com 模吧,玩出精彩!