dronekit / dronekit-sitl

SITL runner for DroneKit.
120 stars 112 forks source link

SITL print the whole URL for connecting #36

Open hamishwillee opened 9 years ago

hamishwillee commented 9 years ago

SITL starts by exposing a TCP port. Ideally you should be able to connect this using a localhost address, but this failed on windows. That means that the instructions to get the "full URL" for connecting end up needing to be quite complicated (e.g. on windows, got to commandprompt, run ipconfig, get current address then do ....)

It would be better if

tcr3dr commented 9 years ago

Can do. Example dump would be:

Waiting for connection ....
tcp:127.0.0.1:5760
udpin:127.0.0.1:6760
tcr3dr commented 9 years ago

udpin is equivalent to udp or no prefix in MAVProxy; still better to specify it usually.

hamishwillee commented 9 years ago

The loopback does not work for tcp connections (don't ask me why). I always have to explicitly put the network address in. So above looks great, but I think you'd need to get address from the interface.

By contrast, loopback does work for udp. I would be happy with a fix whereby the loopback works, because it would make the docs a lot cleaner.