一、编译
第一步,配置要运行的平台,笔者使用的CUAV-X7飞控。
./waf configure --board=CUAV-X7
第二步,编译要测试的example代码。
./waf build --target examples/RC_Channel
或者运行
./waf checks
注意,check命令在配置完板子之后会报错。
二、烧录代码
也可以在上一步编译的时候直接下载。
./waf --target examples/RC_Channel --upload
三、实验结果
用cutecom接收消息。
ps:想看自己都编译了哪些examples,运行:
cd $ARDUPILOT_HOME
./waf list | grep 'examples'