Hey guys!
I’m currently creating custom scripts for a project and I want to use SITL to test them. I’m currently using DroneKit and SITL with QGroundControl. The goal was/is to run Python scripts utilizing DroneKit to interact with the SITL drone.
Issue Summary: When running sim_vehicle.py
, MAVProxy starts with the default configuration:
--out 127.0.0.1:14550
--master tcp:127.0.0.1:5760
--sitl 127.0.0.1:5501
--out 127.0.0.1:14551
My DroneKit script is set to connect to 127.0.0.1:14551
. However, upon execution, I’m getting a timeout error, specifically: dronekit.TimeoutError: wait_ready experienced a timeout after 30 seconds.
.
QGroundControl also disconnects from SITL whenever I initiate my dronekit script.
Steps Taken:
- Ensured
sim_vehicle.py
is running (QGroundControl visualizes the drone) before initiating the script. - Confirmed no other applications/scripts are trying to connect to port
14551
. - Tried connecting the script to
127.0.0.1:14550
(after closing QGC) with the same issue persisting. - Checked for any firewall or security software that might block the ports - none found.
Would anyone be able to provide guidance on how to resolve this issue? Are there any nuances that I should be aware of?
Thank you.