mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-23 03:26:35 +00:00
Add install.sh for quick install and run necessary tools on new hardware
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
MAVSDK/
|
||||
ardupilot/
|
||||
+27
@@ -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
|
||||
Reference in New Issue
Block a user