I am trying to connect and control a Tello drone from Ubuntu 18.04 using WSL but having trouble with the networking part. I am building off of the dji-sdk/Tello-Python/Tello_Video python code available on GitHub which I've been able to use successfully on native Ubuntu.
Through Windows networking I am connected to the Drone's WiFi network but I'm not sure how to configure WSL or what to pass into the Tello class constructor to get things to connect.
For reference, normally I am able to connect to the Drone with the simple snippet below:
from tello import Tello
tello_obj = Tello('', 8889)
The full constructor header for the Tello class is given as:
def __init__(self, local_ip, local_port, imperial=False, command_timeout=.3, tello_ip='192.168.10.1', tello_port=8889)
So I'm pretty sure I just need to pass the right IP/ports but not sure where I should find this. Thanks for any help!
This might not be the best answer, but maybe try the port 8890. if that does not work, you can try an alternative .. the
djitellopy
library or thetellopy
library. I would suggest thetellopy
library available on github. but if you also wanna try the djitellopy, more for users than debuggers/programmers then you can, no problem.tellopy: https://github.com/hanyazou/TelloPy
djitellopy: https://github.com/damiafuentes/DJITelloPy
if you're gonna try tellopy, here is an example code:
if you're doing djitellopy, then this is the same code but simplified:
tested everything on windows.
personally, I work more with djitellopy because it has easier stream handeling than tellopy.
I really hope everything works for you. goodluck!