Skip to content

Basic movement control

ErnGusMik edited this page Sep 25, 2022 · 2 revisions

Go up/down

tello.up(x)
# OR
tello.down(x)

Possible responses: ok / error
Parameters:

  • x: integer. Distance to go up/down in cm.

Go forwards/backwards

tello.forward(x)
# OR
tello.back(x)

Possible responses: ok / error
Parameters:

  • x: integer. Distance to go forwards/backwards in cm.

Go left/right

tello.left(x)
# OR
tello.right(x)

Possible responses: ok / error
Parameters:

  • x: integer. Distance to go left/right in cm.

Rotate

tello.rotate(direction, degrees)

Possible responses: ok / error
Parameters:

  • direction: string. Direction in which the drone should rotate -- clockwise: 'cw' or counter-clockwise: 'ccw'
  • degrees: integer. Amount of degrees the drone should rotate -- 1 to 360.

Flip

tello.flip(direction)

Possible responses: ok / error
Parameters:

  • direction: string. Direction in which the drone will flip -- left: 'l', right: 'r', forwards: 'f', or backwards: 'b'.