View Source Tello.Command (Tello v0.1.0)

Collection of functions to send command to a Tello.Client.

Link to this section Summary

Functions

Fly back for distance cm.

Set the Tello to station mode, and connect to the access point.

Fly at a curve according to the two given coordinates of the Mission Pad mission_pad_id at speed (cm/s).

Fly down for distance cm.

Stop motors immediately.

Enable Tello's SDK mode.

Fly forward for distance cm.

Get current battery percentage.

Get Tello SDK version

Get Tello serial number

Get current speed (cm/s).

Get current flight time.

Fly to coordinate x,y,z at speed (cm/s).

Fly to coordinates x,y,z of Mission Pad first_mission_pad_id after recognizing, and recognize coordinates 0,0,z of Mission Pad second_mission_pad_id and rotate to the yaw value after hovering at the coordinates.

Auto landing.

Fly left for distance cm.

Fly right for distance cm.

Rotate degree degrees on direction.

Set Mission Pad detection to on/off

Set speed to speed cm/s

Set Wi-Fi SSID and password

Hover in the air.

Set the video stream to on/off.

Auto takeoff.

Fly up for distance cm.

Link to this section Types

@type coordinate() :: {x :: integer(), y :: integer(), z :: integer()}
@type mission_pad_id() :: :m1 | :m2 | :m3 | :m4 | :m5 | :m6 | :m7 | :m8

Link to this section Functions

Link to this function

back(tello_client, distance)

View Source

Fly back for distance cm.

Link to this function

connect_to_ap(tello_client, ssid, password)

View Source

Set the Tello to station mode, and connect to the access point.

Link to this function

curve(tello_client, coordinate1, coordinate2, speed, mission_pad_id \\ nil)

View Source

Fly at a curve according to the two given coordinates of the Mission Pad mission_pad_id at speed (cm/s).

Link to this function

down(tello_client, distance)

View Source

Fly down for distance cm.

Stop motors immediately.

Enable Tello's SDK mode.

Link to this function

flip(tello_client, direction)

View Source

Flip direction

Available direction:

  • :left
  • :right
  • forward
  • back
Link to this function

forward(tello_client, distance)

View Source

Fly forward for distance cm.

Link to this function

get_battery(tello_client)

View Source

Get current battery percentage.

Link to this function

get_sdk_version(tello_client)

View Source

Get Tello SDK version

Link to this function

get_serial_number(tello_client)

View Source

Get Tello serial number

Get current speed (cm/s).

Get current flight time.

Link to this function

get_wifi_snr(tello_client)

View Source

Get Wi-Fi SNR.

Link to this function

go(tello_client, coordinate, speed, mission_pad_id \\ nil)

View Source
@spec go(pid(), coordinate(), integer(), mission_pad_id()) :: :ok | {:error, any()}

Fly to coordinate x,y,z at speed (cm/s).

If mission_pad_id is set, the coordinates will be set of the Mission Pad.

Link to this function

jump(tello_client, coordinate, speed, yaw, first_mission_pad_id, second_mission_pad_id)

View Source

Fly to coordinates x,y,z of Mission Pad first_mission_pad_id after recognizing, and recognize coordinates 0,0,z of Mission Pad second_mission_pad_id and rotate to the yaw value after hovering at the coordinates.

Auto landing.

Link to this function

left(tello_client, distance)

View Source

Fly left for distance cm.

Link to this function

right(tello_client, distance)

View Source

Fly right for distance cm.

Link to this function

rotate(tello_client, direction, degree)

View Source
@spec rotate(pid(), :clockwise | :counterclockwise, integer()) ::
  :ok | {:error, any()}

Rotate degree degrees on direction.

Link to this function

set_mission_pad_detection(tello_client, toggle)

View Source

Set Mission Pad detection to on/off

Link to this function

set_mission_pad_detection_mode(tello_client, mode)

View Source

Set Mission Pad detection mode

Link to this function

set_remote_controller(tello_client, channel_left_right, channel_forward_backward, channel_up_down, yaw)

View Source

Set remote controller via four channels

Link to this function

set_speed(tello_client, speed)

View Source

Set speed to speed cm/s

Link to this function

set_wifi(tello_client, ssid, password)

View Source

Set Wi-Fi SSID and password

Hover in the air.

Link to this function

stream(tello_client, toggle)

View Source
@spec stream(pid(), :on | :off) :: :ok | {:error, any()}

Set the video stream to on/off.

Auto takeoff.

Link to this function

up(tello_client, distance)

View Source

Fly up for distance cm.