-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command 'dronekit-sitl copter' hangs on 'waiting for connection' #118
Comments
did you solve the that problem? i also have same problem... |
@lucetewoo Hello, I did manage to solve this problem. Turns out we are using the sim wrong. The reason it is stuck on waiting for connection is that the simulated vehicle from dronekit-sitl is waiting for some code to connect to it and use it! If nothing connects to it to use it, of course, it will just sit there and wait for a connection. Observe the following steps to understand whats going on. Step 1) Step 2) Step 3) Step4) P.S. At the top of that python script (which you can find on google) there needs to be an 'import time" statement otherwise the script won't recognize time.sleep() I added this before step 4 was executed. "Note that this was done on Ubuntu 16.04" Hopefully this helps you |
till step 3, everything worked well but after running the same code as provided in step 3, I get following error I'm using windows 10 kindly help... |
So I understand that when you run the command "dronekit-sitl copter" The first thing it does is try to establish a connection to 127.0.0.1:5760. For some reason, the script can't connect to that TCP IP and Port.
Shown in the photo above is the output which hangs on "waiting for connection"
I have tried scanning for the port and it looks like the port doesn't even exsist.(shown below is an image of an nmap scan of the closed ports on 127.0.0.1. Right where you think 5760 would be it skips from 5730 to 5800.
The nmap scan also reveals that there are only two ports open on 127.0.0.1
I'm running dronekit-sitl on windows 10. I have already added new inbound and outbound rules on the firewall for the TCP port 5760.
I also tried the command on different networks to no avail.
I have run out of ideas to solve the issue and am in need of help!
The text was updated successfully, but these errors were encountered: