The aim is to test out and build a framework for SDVP for drone control.
Setup px4. As of now I have got it to work only on Ubuntu 20.04, hopefully should be possible to port it to a nix package.
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
./PX4-Autopilot/Tools/setup/ubuntu.sh
Follow instructions from here:
wget https://github.com/mavlink/MAVSDK/releases/download/v0.37.0/mavsdk_0.37.0_ubuntu20.04_amd64.deb
sudo dpkg -i mavsdk_0.37.0_ubuntu20.04_amd64.deb
Most of it is taken from the MAVSDK page.
Don’t forget to add any new files to Cmake file.
cmake -Bbuild -H.
cmake --build build -j8
First start the PX4 simulater. Within the px4 code repo
make px4_sitl gazebo
Run the compiled executable droneControl
.
./build/droneControl udp://:14540