Files
autopilot/install.sh
T
2024-05-22 13:53:02 +00:00

28 lines
707 B
Bash

# MAVSDK
sudo apt-get update -y
sudo apt-get install build-essential cmake git python3-pip -y
git clone https://github.com/mavlink/MAVSDK.git
cd MAVSDK
git checkout tags/v2.9.1
git submodule update --init --recursive
cmake -Bbuild/default -DCMAKE_BUILD_TYPE=Release -H.
cmake --build build/default -j8
sudo cmake --build build/default --target install
cd ..
#Ardupilot
git clone --recursive https://github.com/ArduPilot/ardupilot.git
cd ardupilot
./Tools/environment_install/install-prereqs-ubuntu.sh -y
. ~/.profile
./waf configure --board=sitl
./waf build
#Autopilot
cd src && qmake && make
#Run
./ardupilot/Tools/autotest/sim_vehicle.py --map --console -v ArduCopter &
cd src
./autopilot mission.json