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

Publicado em: 02 September 2019
no canal de: 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.


Nesta página do site você pode assistir ao vídeo on-line Ardupilot Software-in-the-loop (SITL) Tutorial - Python 3 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jay 02 September 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,330 vezes e gostou 18 espectadores. Boa visualização!