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:
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.
sim_vehicle.pyis running (QGroundControl visualizes the drone) before initiating the script.
- Confirmed no other applications/scripts are trying to connect to port
- 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?