Files
autopilot/README.md
T
Tuomas Järvinen f832b9fc92 Initial version of ArduPilot compatible autopilot
- removed PX4 and MAVSDK git submodules
2024-05-12 22:42:52 +02:00

1.5 KiB

Azaion Autopilot

A preliminary example of autonomous drone flight. This example is based on the MAVSDK framework and ArduPilot flight controller software. Running the example requires installing MAVSDK debian package and compiling ArduPilot. Example has been tested in Ubuntu 20.04 environment.

Install necessary dependencies

sudo apt update

sudo apt install ccache git build-essential qt5-qmake qtbase5-dev

Speed up the compilations

echo "export MAKEFLAGS="-j$(($(nproc)))"" >> ~/.bashrc

echo "export PATH=/usr/lib/ccache:$PATH" >> ~/.bashrc

Clone source codes. You must add your SSH key before the cloning!

git clone git@github.com:azaion/autopilot.git git clone --recursive git@github.com:azaion/autopilot.git git submodule update --init --recursive

Install MAVSDK for Ubuntu 20.04

wget https://github.com/mavlink/MAVSDK/releases/download/v2.9.1/libmavsdk-dev_2.9.1_ubuntu20.04_amd64.deb

sudo dpkg -i libmavsdk-dev_2.9.1_ubuntu20.04_amd64.deb

Install MAVSDK for Ubuntu 22.04

wget https://github.com/mavlink/MAVSDK/releases/download/v2.9.1/libmavsdk-dev_2.9.1_ubuntu22.04_amd64.deb

sudo dpkg -i libmavsdk-dev_2.9.1_ubuntu22.04_amd64.deb

Build autopilot application

cd src && qmake && make

Launch similator in the ArduPilot directory

./Tools/autotest/sim_vehicle.py --map --console -v ArduCopter

Launch example application in the new terminal window after waiting simulator (around 1 min) to be ready

qmake && make && ./autopilot mission.json