Add install.sh for quick install and run necessary tools on new hardware

This commit is contained in:
Oleksandr Bezdieniezhnykh
2024-05-22 13:53:02 +00:00
parent 220e70dda6
commit 85e4546ad4
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
MAVSDK/
ardupilot/
+27
View File
@@ -0,0 +1,27 @@
# 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