View Source Tello.Controller (Tello v0.3.0)
GenServer to connect to a Tello.
Uses Tello.start/1
to start a client.
Link to this section Summary
Functions
Fly back for distance
cm.
Returns a specification to start this module under a supervisor.
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.
Flip direction
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.
Get Wi-Fi SNR.
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 Mission Pad detection mode
Set remote controller via four channels
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 init_arg() :: [ ip: :inet.ip_address(), port: :inet.port_number(), receiver: Tello.Controller.Receiver.t() | nil ]
@type mission_pad_id() :: :m1 | :m2 | :m3 | :m4 | :m5 | :m6 | :m7 | :m8
@type t() :: module()
Link to this section Functions
Fly back for distance
cm.
Returns a specification to start this module under a supervisor.
See Supervisor
.
Set the Tello to station mode, and connect to the access point.
curve(controller, coordinate1, coordinate2, speed, mission_pad_id \\ nil)
View Source@spec curve(pid(), coordinate(), coordinate(), integer(), mission_pad_id() | nil) :: :ok | {:error, any()}
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.
Flip direction
Available direction:
:left
:right
forward
back
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.
Get Wi-Fi SNR.
@spec go(pid(), coordinate(), integer(), mission_pad_id() | nil) :: :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.
jump(controller, arg, speed, yaw, first_mission_pad_id, second_mission_pad_id)
View Source@spec jump( pid(), coordinate(), integer(), integer(), mission_pad_id(), mission_pad_id() ) :: :ok | {:error, any()}
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
@spec set_mission_pad_detection_mode( pid(), :both | :downward | :forward ) :: :ok | {:error, any()}
Set Mission Pad detection mode
set_remote_controller(controller, channel_left_right, channel_forward_backward, channel_up_down, yaw)
View Source@spec set_remote_controller( pid(), {:left, integer()} | {:right, integer()}, {:backward, integer()} | {:forward, integer()}, {:down, integer()} | {:up, integer()}, integer() ) :: :ok | {:error, any()}
Set remote controller via four channels
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.