Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

Tello python SDK only works takeoff and land command.

yasuowastaken

New member
Joined
Oct 5, 2018
Messages
2
Reaction score
0
Does anyone have the same issue and get working well with other commands?
I'm working on windows10 and Mac OSX, but it only works takeoff and land command.
 

yasuowastaken

New member
Joined
Oct 5, 2018
Messages
2
Reaction score
0
If I delete source code of the receiving data part, part of the commands work, but still, flip commands are not working.
I don't know why it seems like our local network problem or something.
Well, now kind of, I can control a Tello.

If anyone has the same trouble, try this. It might help...

Thanks.
 

rojo-amigo

Member
Joined
Nov 16, 2018
Messages
7
Reaction score
3
Location
Canada
Using python code, I can get most commands to work but NOT flip. I get a Berror.
I am using the latest firmware. It will flip if I use the tello app.
 

neolu

Active member
Joined
Aug 23, 2018
Messages
42
Reaction score
27
The python code write by itself or where to download it?
 

rojo-amigo

Member
Joined
Nov 16, 2018
Messages
7
Reaction score
3
Location
Canada
The code that I converted from python 2 to 3 and did not work the flip command on the PC was from github Tello-Python.

The code that I wrote on my samsung tab3 which does work is the following:

print("This is console module")
import socket
tello = ("192.168.10.1", 8889)
# create udp socket
try:
socket = socket.socket (socket.AF_INET, socket.SOCK_DGRAM)
except socket.error:
print("error in connection")
exit()

while 1:
message = input("> ")
print(message)

if message == "exit" :
print ("goodbye")
break
message = message.encode()
try:
socket.sendto(message, tello)
data, ip = socket.recvfrom(1024)
print ("{}: {}".format (ip, data.decode()))
except socket.error:
print ("error {}".format(socket.error))
exit()
 

New Threads

Members online

Forum statistics

Threads
3,224
Messages
24,944
Members
8,313
Latest member
Menezare