inav源码可以使用本机编译也可以使用Docker编译
本地编译
下载源码:
mkdir inav && cd inav
git clone https://github.com/iNavFlight/inav.git
安装工具链:
./install-toolchain.sh
编译固件:
make TARGET=SPRACINGF3
使用docker编译
1.安装docker
2.下载飞控编译依赖的容器
docker pull flyandi/docker-inav
3.从github下载inav源码
mkdir /home/src
mkdir inav
cd inav
git clone https://github.com/iNavFlight/inav.git
4.编译源码
./build.sh SPRACINGF3
obj/inav_2.0.1_SPRACINGF3.hex 既为SPRACINGF3飞控的固件,同理,其他飞控编译只需要替换./build.sh 后面的SPRACINGF3。
inav 2.0.1支持的飞控如下:
AIRHEROF3 AIRHEROF3_QUAD
COLIBRI_RACE LUX_RACE FURYF3 FURYF3_SPIFLASH RCEXPLORERF3 RMDO SPARKY KFC32F3_INAV FALCORE MOTOLAB ANYFC BLUEJAYF4 COLIBRI F4BY
QUANTON REVO SPARKY2 YUPIF4 YUPIF4R2 YUPIF4MINI KROOZX PIKOBLX CLRACINGF4AIR CLRACINGF4AIRV2 PIXRACER BEEROTORF4 ANYFCF7 ANYFCF7_EXTERNAL_BARO ANYFCM7
ALIENFLIGHTNGF7
BETAFLIGHTF3 BETAFLIGHTF4
FF_F35_LIGHTNING FF_FORTINIF4
KAKUTEF4 KAKUTEF4V2
SPRACINGF3 SPRACINGF3EVO SPRACINGF3EVO_1SS SPRACINGF3MINI SPRACINGF3NEO SPRACINGF4EVO
OMNIBUS AIRBOTF4 ASGARD32F4 FIREWORKSV2
OMNIBUSF4 OMNIBUSF4PRO OMNIBUSF4V3 OMNIBUSF4PRO_LEDSTRIPM5 DYSF4PRO
OMNIBUSF7 OMNIBUSF7V2 OMNIBUSF7NXT YUPIF7
MATEKF405 MATEKF405_SERVOS6 MATEKF405OSD MATEKF722 MATEKF405SE MATEKF411
SPEEDYBEEF4
网友评论