-
Notifications
You must be signed in to change notification settings - Fork 293
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
fly multiple tello with video in AP mode #87
Comments
Assuming 2 USB Wifi devices and Tellos, I would connect each network device to a unique Tello drone. Then I would modify how tello.py binds to network interface starting here. I'd use the below function to get the IP of my network interface:
Then change my binding as so:
Lastly, I'd run two separate instances of lets say the keyboard_and_video example, where the binding addresses (aka network interfaces) are different, along with the mp4 file names. |
Thanks for the quick reply. |
I think because of 2 tello is trying to connect to the same 192.168.10.1 address. that's why. one of the adapter is constantly lost connection. in this case. how do i set it up? |
hey i just tried your suggestion. But turns out only 1 drone is in command mode/ AKA light turns green. it means the code only works for 1 drone, no matter it is same python code or put it separately. I think need to solve the adapter IP assignment and port forwarding issue first. |
Hi @snakehaihai , My suggestion only works on Windows (my current box). On Linux the interface is normally not chosen until a routing decision is made, therefore you usually don't have a say on which interface your packets leave. You do have the option though of using SO_BINDTODEVICE (see man 7 socket) on Linux. This binds a socket to a device. You can do the following to bind it to a specific device (need root):
Note: sockets are C bindings, so from Hope this helps |
thank you all the same. Cause I`m flying multiple tello with each drone running an orbslam instance to achieve real-time collaborative image-based localization and mapping for automated path planning and decision. All of the package are only tested in ubuntu. therefore, I cant use windows. |
@snakehaihai Also, that's pretty cool, I saw some of the repos on your page and they look fun! |
@snakehaihai |
not exactly. |
Hi
Assume i have N usb wifi adapter and N tello. How do i use this package to run multiple of Tello concurrently? I tried 2 USB + 2 tello. when i launch the first one and enable the video feed. I cant get the second video feed.
The text was updated successfully, but these errors were encountered: