Ardupilot Software-in-the-loop (SITL) Tutorial - Python 3

Published: 02 September 2019
on channel: Jay
4,330
18

This video guides you through installation of Ardupilot SITL, so you can test your Python (dronekit) scripts before testing it on your drone.


The commands that I've used are:

1) dronekit-sitl copter-3.3 --home=24.890016,67.090451,0.0 -UI

[That's the GPS location of NUST Karachi - my university]


2) mavproxy.py --master tcp:127.0.0.1:5760 --out=udp:192.168.10.3:14550 --out=udp:192.168.10.8:14550

[192.168.10.3 is the local address of my PC, and 192.168.10.8 is the local address of my phone, whereas 127.0.0.1 is the loopback address. Change this according to your devices]


3)python quad_control.py --connect udp:192.168.10.3:14550

[Since 192.168.10.3 is my PC, I run python script on my PC, which is located on my desktop]

- -
Additional Information:

There is no restriction on number of output device. You can view the same telemetry data on your friends PC, your tablet , or any other device as long as they have application that can understand Mavlink protocol and are connected to the same network.


For more info visit:

http://ardupilot.org/dev/docs/sitl-si...

http://ardupilot.org/dev/docs/mavlink...


- -
Disclaimer:

The video is meant for educational purpose only. Initially Python-3 had no support for the libraries that are being used in the code. The simulator may act strange and show random errors due to certain parameter mismatch.


On this page of the site you can watch the video online Ardupilot Software-in-the-loop (SITL) Tutorial - Python 3 with a duration of hours minute second in good quality, which was uploaded by the user Jay 02 September 2019, share the link with friends and acquaintances, this video has already been watched 4,330 times on youtube and it was liked by 18 viewers. Enjoy your viewing!