Search code examples
pythondji-sdktello-drone

Exception: Command 'command' was unsuccessful for 4 tries. Latest response: 'command'


I've created this simple tello code:

from djitellopy import Tello
tello = Tello()

tello.connect()
tello.takeoff()

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

tello.land()

However, every time I try to run the code, the drone light is yellow, even when I've connected to its wifi and I get this error:

Exception: Command 'command' was unsuccessful for 4 tries. Latest response: 'command'


Solution

  • I had the same problem.

    Then I connected the app and there was a need to activate the drone through the app. After that, I could connect the PC to the drone and take off / land.