Ardupilot autopilot for Parrot drones - Parrot-Developers/ardupilot GitHub Wiki

Update the firmware to a custom made one

Get the bebop firmware here. Push it to the target.

Get Ardupilot software

Binary

Just download the ArduCopter.elf binary here.

Source

Get the latest sources on Parrot github:

git clone https://github.com/Parrot-Developers/ardupilot.git

or on diydrones github:

git clone https://github.com/diydrones/ardupilot.git

###Install armhf toolchain

Download linaro 2014 armhf toolchain For instance here:

https://releases.linaro.org/14.07/components/toolchain/binaries/

Untar it in /opt/

sudo tar -xjvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux.tar.bz2 -C /opt/

Add the bin directory to the PATH environment variable

export PATH=opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin:$PATH

#Compile the code

cd ardupilot/ArduCopter
make bebop

Strip the Binary in order to reduce memory usage arm-linux-gnueabihf-strip ArduCopter/elf

Connect to the bebop using adb

Install adb

sudo apt-get install android-tools-adb

Connect to your Bebop

Find the Wi-Fi network of your bebop normally BebopDrone-{SerialNo} and connect to it Connect to it over ip, port 9050 note: the address of the Bebop is 192.168.42.1

adb connect 192.168.42.1:9050

Push the ArduCopter binary to the bebop

adb push ArduCopter.elf /usr/bin/arducopter

Kill the regular bebop software

kk

Launch arducopter

arducopter -A udp:192.168.42.255:14550:bcast -B /dev/ttyPA1 -C udp:192.168.42.255:14551:bcast -l data/ftp/internal_000/APM/logs -t /data/ftp/internal_000/APM/terrain
⚠️ **GitHub.com Fallback** ⚠️