The recommended way to install any vehicle is the following (after frambuesa release):
Connect your Raspberry Pi Zero to internet, open one terminal and execute the following commands:
sudo apt-get update sudo apt-get install apm-copter-pxfmini
Open a terminal and type the following:
sudo apt-get purge -y apm-copter-pxfmini
git clone https://github.com/ardupilot/ardupilot cd ardupilot/ git submodule update --init ./waf configure --board=pxfmini ./waf # to compile the code for all the vehicles
If only one of the vehicles is needed:
./waf --targets bin/arducopter-quad # coax heli hexa octa ...
binaries will be located under
To compile the APM for the Raspberry Pi Zero type the following in the command line of a Linux/Mac OS machine:
cd ~/ git clone https://github.com/raspberrypi/tools.git # Get cross compiler git clone https://github.com/erlerobot/ardupilot.git # Fetch the flight stack sources
Then, compile the autopilot for the desired vehicle, e.g. for Copter:
cd ~/ardupilot/ArduCopter make pxfmini -j4
You can download the latest binary file from http://firmware.ardupilot.org/
You need to copy the new binary file to the Erle-Brain 2 via ssh.
# set a new name to the recently created binary # or before copying the new one rename one located in the brain ssh firstname.lastname@example.org mv ArduCopter.elf ArduCopter.elf.old sudo systemctl stop apm.service exit scp /tmp/ArduCopter.build/ArduCopter.elf email@example.com:~/ArduCopter.elf ssh firstname.lastname@example.org # launch manually binary file Ctrl+C to close sudo ./ArduCopter.elf # start apm.service sudo systemctl start apm.service exit