PX4新代码改变了很多东西,同时子模块改变也挺大的。将主代码切换到较老版本时会发生子模块版本不符合的情况,这时候需要注意,切换后需要同步下子模块
make clean
git checkout <whatever tag>
git submodule update --init --recursive
git submodule sync --recursive
git submodule update --init --recursive #only needed in odd cases, I think
make <whatever target>