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

'error Not joystick' when calling any commands (Tello with Python using DjiTelloPy)

pzmn

New member
Joined
Oct 29, 2020
Messages
1
Reaction score
0
Hello fellow pilots,

I want to program some AI software on my Tello, but even simple commands doesn't seem to work. I'm using DjiTelloPy package on Python 3.7.

Using example code:
Python:
from djitellopy import Tello

tello = Tello()

tello.connect()
tello.takeoff()

tello.move_left(100)
tello.rotate_counter_clockwise(90)
tello.move_forward(100)

tello.land()

That's my output:
Code:
Send command: command
Response: b'ok'
Send command: takeoff
Timeout exceed on command takeoff
Command takeoff was unsuccessful. Message: False
Send command: left 100
Timeout exceed on command left 100
Command left 100 was unsuccessful. Message: False
Send command: ccw 90
Response: b'error Not joystick'
Command ccw 90 was unsuccessful. Message: error Not joystick
Send command: forward 100
Response: b'ok'
Send command: land
Response: b'error Auto land'
Command land was unsuccessful. Message: error Auto land

I've tested the connection from two computers and both fail to control the drone. Flying with Tello App works fine, though. Any advice how to resolve this?
 

agraham

Well-known member
Joined
Jul 10, 2020
Messages
52
Reaction score
13
I have never tried it but don't you have to wait between commands so the previous one finishes before the next one can be accepted? Isn't there some kind of command complete response from the Tello?
 

Daniel_Roxl

Member
Joined
Dec 7, 2020
Messages
6
Reaction score
6
Hello fellow pilots,

I want to program some AI software on my Tello, but even simple commands doesn't seem to work. I'm using DjiTelloPy package on Python 3.7.

Using example code:
Python:
from djitellopy import Tello

tello = Tello()

tello.connect()
tello.takeoff()

tello.move_left(100)
tello.rotate_counter_clockwise(90)
tello.move_forward(100)

tello.land()

That's my output:
Code:
Send command: command
Response: b'ok'
Send command: takeoff
Timeout exceed on command takeoff
Command takeoff was unsuccessful. Message: False
Send command: left 100
Timeout exceed on command left 100
Command left 100 was unsuccessful. Message: False
Send command: ccw 90
Response: b'error Not joystick'
Command ccw 90 was unsuccessful. Message: error Not joystick
Send command: forward 100
Response: b'ok'
Send command: land
Response: b'error Auto land'
Command land was unsuccessful. Message: error Auto land

I've tested the connection from two computers and both fail to control the drone. Flying with Tello App works fine, though. Any advice how to resolve this?
I am testing library
Hello fellow pilots,

I want to program some AI software on my Tello, but even simple commands doesn't seem to work. I'm using DjiTelloPy package on Python 3.7.

Using example code:
Python:
from djitellopy import Tello

tello = Tello()

tello.connect()
tello.takeoff()

tello.move_left(100)
tello.rotate_counter_clockwise(90)
tello.move_forward(100)

tello.land()

That's my output:
Code:
Send command: command
Response: b'ok'
Send command: takeoff
Timeout exceed on command takeoff
Command takeoff was unsuccessful. Message: False
Send command: left 100
Timeout exceed on command left 100
Command left 100 was unsuccessful. Message: False
Send command: ccw 90
Response: b'error Not joystick'
Command ccw 90 was unsuccessful. Message: error Not joystick
Send command: forward 100
Response: b'ok'
Send command: land
Response: b'error Auto land'
Command land was unsuccessful. Message: error Auto land

I've tested the connection from two computers and both fail to control the drone. Flying with Tello App works fine, though. Any advice how to resolve tIhis?
I am testing djitellopy on python 3.7using WingIde personal and this problem was solved using a time.sleep (any_seconds) in this way:
from djitellopy import Tello
import time

t = Tello()
t.connect()
time.sleep(3)

t.takeoff()
time.sleep(3)

t.land()
time.sleep(3)

It works but this anoying message still appears:
Send command: command
Response: b'ok'
Send command: takeoff
Timeout exceed on command takeoff
Command takeoff was unsuccessful. Message: False
Send command: land
Timeout exceed on command land
Command land was unsuccessful. Message: False

I will try changing time values.
 

Rom13IL

Member
Joined
Dec 21, 2020
Messages
7
Reaction score
1
Did you find a way to override this problem? If I you want to program an A.I for flying the drone I can't wait more than 1 second for everytime i want to send a command. After all, in the phone app we can move forward and look to the right but if we program the drone we can only do one at a time because of the not joystick...

Did anyone find a way to override it?
 

kurnis

New member
Joined
Feb 7, 2021
Messages
1
Reaction score
0
I had the same problems. I solved it reseting the drone:

Long press Tello for 5 seconds while Tello is on, and the indicator light will turn off and then flash yellow. When the indicator light shows a flashing yellow light, the Wi-Fi SSID and password will be reset to the factory settings, and there is no password by default.
 

tesla

New member
Joined
May 16, 2021
Messages
1
Reaction score
0
Hello fellow pilots,

I want to program some AI software on my Tello, but even simple commands doesn't seem to work. I'm using DjiTelloPy package on Python 3.7.

Using example code:
Python:
from djitellopy import Tello

tello = Tello()

tello.connect()
tello.takeoff()

tello.move_left(100)
tello.rotate_counter_clockwise(90)
tello.move_forward(100)

tello.land()

That's my output:
Code:
Send command: command
Response: b'ok'
Send command: takeoff
Timeout exceed on command takeoff
Command takeoff was unsuccessful. Message: False
Send command: left 100
Timeout exceed on command left 100
Command left 100 was unsuccessful. Message: False
Send command: ccw 90
Response: b'error Not joystick'
Command ccw 90 was unsuccessful. Message: error Not joystick
Send command: forward 100
Response: b'ok'
Send command: land
Response: b'error Auto land'
Command land was unsuccessful. Message: error Auto land

I've tested the connection from two computers and both fail to control the drone. Flying with Tello App works fine, though. Any advice how to resolve this?
Hi , i have the same problem can you tell me how you solved it ?? please
 

Zar

New member
Joined
May 8, 2021
Messages
2
Reaction score
0
hi, I am having an error in python code in video capturing. Anyone who can help. The tello light turns green but it does not show anything on screen.
OpenCV(4.5.2) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-1bq9o88m\opencv\modules\imgproc\src\resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
 

marsar24

New member
Joined
Mar 10, 2021
Messages
2
Reaction score
0
hi, I am having an error in python code in video capturing. Anyone who can help. The tello light turns green but it does not show anything on screen.
OpenCV(4.5.2) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-1bq9o88m\opencv\modules\imgproc\src\resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
Hey Zar, the error that you see is because of an empty frame. Most probably because of the way you are reading tello's frame.

To read tello's frame:

tello = Tello()
while True:
frameObject = tello.get_frame_read()
cv2.imshow("preview", frameObject.frame)
cv2.waitKey(1)


If you need any help, you can checkout my ongoing hobby project : MithilanchalRobotics/All_Things_Tello

Also, after connecting to the Tello wifi, in my tello edu it turns solid pink, slow flashing pink and then fast flashing pink. Not sure if light signals are same in EDU version.
 
Last edited:

martinpi

Well-known member
Joined
Dec 15, 2019
Messages
88
Reaction score
50
Location
Vienna. Austria
Website
martinpi.at
look here:

It happens when you issue commands too fast and Tello is not ready for the next command.
 

New Threads

Members online

Forum statistics

Threads
5,064
Messages
36,657
Members
13,611
Latest member
Wrapsnacker