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.
Auf dieser Seite können Sie das Online-Video Ardupilot Software-in-the-loop (SITL) Tutorial - Python 3 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Jay 02 September 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 4,330 Mal angesehen und es wurde von 18 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!