Wednesday, June 27, 2018

Starting Dronekit-Python

The Command


python ~/dronekit-python/examples/SimMission/SimMission.py --connect 127.0.0.1:14552


Notes


*Be sure to replace "~/dronekit-python/examples/SimMission/SimMission.py" with the filepath to the script you've decided to use.

*Notice how it is connecting to 127.0.0.1:14552, which is one of the ports supplied by Mavproxy (see Starting Mavproxy for details).

*Remember, when Dronekit-Python starts, it searches for an available quadcopter for 30 seconds.  If it can't find one in that time, or loses connection with the quad for that amount of time, it shuts down automatically.  So be sure to have SITL, Mavproxy (and Gazebo if you are using it) running before you start Dronekit-Python.

No comments:

Post a Comment