Building for NAVIO2 on RPi3¶
These instructions clarify how to build ArduPilot for the Navio2 board on the Navio2’s RPi3 board itself using Waf build system. These instructions assume the RPi3 has already been setup according to the manufacturer’s (i.e. Emlid’s) instructions here.
Alternatively you can follow Emlid’s instructions on how to build from source found here.
Use an ssh terminal program such as Putty to log into the Navio2 board’s RPI3.
Clone the source:
git clone https://github.com/diydrones/ardupilot.git cd ardupilot git submodule update --init
Waf should always be called from the ardupilot’s root directory.
To keep access to Waf convenient, use the following alias from the root ardupilot directory:
Choose the board to be used:
waf configure --board=navio2
Now you can build arducopter. For quadcopter use the following command:
waf --targets bin/arducopter-quad
To build for other frame types replace quad with one of the following options:
coax heli hexa octa octa-quad single tri y6
In the end of compilation binary file with the name arducopter-quad will be placed in