Skip to content

Basic control

ErnGusMik edited this page Sep 16, 2022 · 1 revision

Initialize SDK mode

tello.init()

Possible responses: ok / error

  • Must be run every time the script runs to avoid error

Automatic takeoff

tello.takeoff()

Possible responses: ok / error

Takeoff when tossed

tello.throw_fly()

Possible responses: ok / error

  • Gently toss the drone forwards from your hand, when ok is received (as a response)
  • Make sure the path (at least 100cm) is clear in front of you!

Automatic landing

tello.land()

Possible responses: ok / error

Emergency: stop motors immediately

tello.emergency()

Possible responses: ok / error
Parameters:

  • reason: string, optional. Reason for stopping all motors. (default: 'No reason provided')

Turn motors on

tello.motors_on()

Possible responses: ok / error

  • Turns motors on low RPM (rotation per minute). Drone will not fly.
  • Can be used for cooling while stationary.

Turn motors off

tello.motors_off()

Possible responses: ok / error

  • Use this after using the tello.motors_on() function
  • Use tello.land() to land the drone, not this.

Hover

tello.hover()

Possible responses: ok / error

  • Stops moving, hovers in place.

Reboot/restart

tello.reboot()

Possible responses: ok / error

  • Drone will restart (unless response is error), and it will take some time.
  • You will need to reconnect to the drone's WiFi after rebooting.