Get your simulated drone up and running with the simple go to script in under 10 min.
Since I had such a difficult time getting the SITL simulation running without issues I thought I'd make this video so that everything you need to get started simulating UAVs would be in one place. This tutorial is specifically for people with Windows installed who also have the Ubuntu on Windows app or a Bash Shell installed.
Make sure you have Python 3.6 or 3.7 installed on your windows machine with it added to the PATH. There are plenty of tutorials for this so I won't cover it.
Also make sure you've got your Bash shell or Ubuntu updated all the way with the following, answer 'y' to the prompt:
sudo apt-get update && sudo apt-get upgrade
Mission Planner:
[ Ссылка ]
Packages to Install:
pip install dronekit dronekit-sitl mavproxy
Open First Terminal
dronekit-sitl copter --home=53.280707,-9.031534,0,180
(The GPS coordinates here are different than in the video, it doesn't matter. Pick your favorite location :) Just be sure to update the python file with the coordinates
that you intend to travel to from the home coordinates specified)
Helpful Links:
[ Ссылка ]
[ Ссылка ]
Open Second Terminal
mavproxy.py --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551 --out 127.0.0.1:14552
(When it asks for the port in Mission Planner make sure it's 14552)
Bash Shell Command:
sudo python drone.py --connect udp:127.0.0.1:14550
Ещё видео!