So I've made a small video of my work so far. Feel free to check it out.
Notes:
- You will need to connect to each tello first to activate it. Without activation it won't act on any commands.
- You will need to connect to each tello to create the wifi profile on a laptop, this is a feature of windows. Wifi profile is used in the script below to connect to the tello wifi networks.
- Each tello has had its MAC address noted.
- The DHCP server on the wifi network has had the three tello MAC addresses entered as an IP address reservation, this way the each tello gets the same IP address each time it connects to the tello-dev wifi network.
The code below runs in the command prompt in windows. It's a batch file, very simple. You need Packetsender, you can get it from here:
Packet Sender - Download
The code connects to each
tello edu wifi and then gets the
tello to connect to a regular wifi network. In this case it is called
tello-dev.
Code:
@echo off
REM connect to tello black and make it connect to tello-dev wifi
netsh wlan connect ssid=TELLO-D3A1BA name=TELLO-D3A1BA
timeout /t 10
packetsender -u -a 192.168.10.1 8889 command
timeout /t 2
packetsender -u -a 192.168.10.1 8889 "ap tello-dev t3ll0Q1!"
timeout /t 1
REM connect to tello green and make it connect to tello-dev wifi
netsh wlan connect ssid=TELLO-D3AA96 name=TELLO-D3AA96
timeout /t 10
packetsender -u -a 192.168.10.1 8889 command
timeout /t 2
packetsender -u -a 192.168.10.1 8889 "ap tello-dev t3ll0Q1!"
timeout /t 1
REM connect to tello red and make it connect to tello-dev wifi
netsh wlan connect ssid=TELLO-D3A403 name=TELLO-D3A403
timeout /t 10
packetsender -u -a 192.168.10.1 8889 command
timeout /t 2
packetsender -u -a 192.168.10.1 8889 "ap tello-dev t3ll0Q1!"
timeout /t 1
netsh wlan connect ssid=tello-dev name=tello-dev
timeout /t 10
ping 10.105.221.20
ping 10.105.221.21
ping 10.105.221.22
The code below is a simple flight plan. It runs in the windows command prompt and the packetsender application needs to be in the same directory to run. I used the ZIP version of packetsender and then copied it into my c:\windows folder so it can be called from anywhere.
This is a batch file, very simple. It isn't fully synchronous as if the code was done in python. The batch files have a very small delay in issuing commands to three tellos at once. I think python would be better at this. The advantage here is that batch files are very simple, like me, lol....
Code:
@echo off
REM connect to wifi network that all the tellos are connected to
netsh wlan connect ssid=tello-dev name=tello-dev
timeout /t 3
REM tellos enter command/SDK mode
packetsender -u -a 10.105.221.20 8889 command
packetsender -u -a 10.105.221.21 8889 command
packetsender -u -a 10.105.221.22 8889 command
timeout /t 5
REM tellos take off
packetsender -u -a 10.105.221.20 8889 takeoff
packetsender -u -a 10.105.221.21 8889 takeoff
packetsender -u -a 10.105.221.22 8889 takeoff
timeout /t 5
REM set different speeds for each tello
packetsender -u -a 10.105.221.20 8889 "speed 10"
packetsender -u -a 10.105.221.21 8889 "speed 50"
packetsender -u -a 10.105.221.22 8889 "speed 90"
timeout /t 5
REM go forward at various distances for each tello
packetsender -u -a 10.105.221.20 8889 "forward 50"
packetsender -u -a 10.105.221.21 8889 "forward 100"
packetsender -u -a 10.105.221.22 8889 "forward 150"
timeout /t 5
REM climb to a higher altitude or not!
packetsender -u -a 10.105.221.20 8889 "up 100"
packetsender -u -a 10.105.221.21 8889 "up 50"
packetsender -u -a 10.105.221.22 8889 "up 0"
timeout /t 5
REM turn tellos in different directions
packetsender -u -a 10.105.221.20 8889 "cw 90"
packetsender -u -a 10.105.221.21 8889 "cw 180"
packetsender -u -a 10.105.221.22 8889 "ccw 90"
timeout /t 5
REM move all tellos forward at different lengths
packetsender -u -a 10.105.221.20 8889 "forward 50"
packetsender -u -a 10.105.221.21 8889 "forward 100"
packetsender -u -a 10.105.221.22 8889 "forward 150"
timeout /t 5
REM land all tellos
packetsender -u -a 10.105.221.20 8889 "land"
packetsender -u -a 10.105.221.21 8889 "land"
packetsender -u -a 10.105.221.22 8889 "land"
cheers,
ph2t.