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_install make 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_g