Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Attributes | List of all members
tellopy._internal.tello.Tello Class Reference
Inheritance diagram for tellopy._internal.tello.Tello:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, port=9000)
 
def backward (self, val)
 
def clockwise (self, val)
 
def connect (self)
 
def counter_clockwise (self, val)
 
def down (self, val)
 
def flip_back (self)
 
def flip_backleft (self)
 
def flip_backright (self)
 
def flip_forward (self)
 
def flip_forwardleft (self)
 
def flip_forwardright (self)
 
def flip_left (self)
 
def flip_right (self)
 
def forward (self, val)
 
def get_alt_limit (self)
 
def get_att_limit (self)
 
def get_low_bat_threshold (self)
 
def get_video_stream (self)
 
def land (self)
 
def left (self, val)
 
def palm_land (self)
 
def quit (self)
 
def record_log_data (self, path=None)
 
def recv_file_data (self, data)
 
def right (self, val)
 
def send_packet (self, pkt)
 
def send_packet_data (self, command, type=0x68, payload=[])
 
def set_alt_limit (self, limit)
 
def set_att_limit (self, limit)
 
def set_exposure (self, level)
 
def set_loglevel (self, level)
 
def set_low_bat_threshold (self, threshold)
 
def set_pitch (self, pitch)
 
def set_roll (self, roll)
 
def set_throttle (self, throttle)
 
def set_video_encoder_rate (self, rate)
 
def set_video_mode (self, zoom=False)
 
def set_yaw (self, yaw)
 
def start_video (self)
 
def subscribe (self, signal, handler)
 
def take_picture (self)
 
def takeoff (self)
 
def throw_and_go (self)
 
def up (self, val)
 
def wait_for_connection (self, timeout=None)
 

Public Attributes

 connected
 
 debug
 
 exposure
 
 file_recv
 
 left_x
 
 left_y
 
 lock
 
 log
 
 log_data
 
 log_data_file
 
 log_data_header_recorded
 
 pkt_seq_num
 
 port
 
 prev_video_data_time
 
 right_x
 
 right_y
 
 sock
 
 state
 
 tello_addr
 
 udpsize
 
 video_data_loss
 
 video_data_size
 
 video_enabled
 
 video_encoder_rate
 
 video_stream
 
 wifi_strength
 
 zoom
 

Static Public Attributes

 CONNECTED_EVENT = EVENT_CONNECTED
 
 EVENT_CONNECTED = event.Event('connected')
 
 EVENT_DISCONNECTED = event.Event('disconnected')
 
 EVENT_FILE_RECEIVED = event.Event('file received')
 
 EVENT_FLIGHT_DATA = event.Event('fligt_data')
 
 EVENT_LIGHT = event.Event('light')
 
 EVENT_LOG = EVENT_LOG_HEADER
 
 EVENT_LOG_CONFIG = event.Event('log_config')
 
 EVENT_LOG_DATA = event.Event('log_data')
 
 EVENT_LOG_HEADER = event.Event('log_header')
 
 EVENT_LOG_RAWDATA = event.Event('log_rawdata')
 
 EVENT_TIME = event.Event('time')
 
 EVENT_VIDEO_DATA = event.Event('video data')
 
 EVENT_VIDEO_FRAME = event.Event('video frame')
 
 EVENT_WIFI = event.Event('wifi')
 
 FLIGHT_EVENT = EVENT_FLIGHT_DATA
 
 LIGHT_EVENT = EVENT_LIGHT
 
 LOG_ALL = logger.LOG_ALL
 
 LOG_DEBUG = logger.LOG_DEBUG
 
 LOG_ERROR = logger.LOG_ERROR
 
 LOG_EVENT = EVENT_LOG
 
 LOG_INFO = logger.LOG_INFO
 
 LOG_WARN = logger.LOG_WARN
 
 STATE_CONNECTED = state.State('connected')
 
 STATE_CONNECTING = state.State('connecting')
 
 STATE_DISCONNECTED = state.State('disconnected')
 
 STATE_QUIT = state.State('quit')
 
 TIME_EVENT = EVENT_TIME
 
 VIDEO_FRAME_EVENT = EVENT_VIDEO_FRAME
 
 WIFI_EVENT = EVENT_WIFI
 

Private Member Functions

def __fix_range (self, val, min=-1.0, max=1.0)
 
def __process_packet (self, data)
 
def __publish (self, event, data=None, args)
 
def __recv_thread (self)
 
def __send_ack_log (self, id)
 
def __send_conn_req (self)
 
def __send_exposure (self)
 
def __send_start_video (self)
 
def __send_stick_command (self)
 
def __send_time_command (self)
 
def __send_video_encoder_rate (self)
 
def __send_video_mode (self, mode)
 
def __state_machine (self, event, sender, data, args)
 
def __video_thread (self)
 

Static Private Attributes

 __EVENT_CONN_ACK = event.Event('conn_ack')
 
 __EVENT_CONN_REQ = event.Event('conn_req')
 
 __EVENT_QUIT_REQ = event.Event('quit_req')
 
 __EVENT_TIMEOUT = event.Event('timeout')
 

Detailed Description

Definition at line 22 of file tello.py.

Constructor & Destructor Documentation

def tellopy._internal.tello.Tello.__init__ (   self,
  port = 9000 
)

Definition at line 63 of file tello.py.

Member Function Documentation

def tellopy._internal.tello.Tello.__fix_range (   self,
  val,
  min = -1.0,
  max = 1.0 
)
private

Definition at line 435 of file tello.py.

def tellopy._internal.tello.Tello.__process_packet (   self,
  data 
)
private

Definition at line 540 of file tello.py.

def tellopy._internal.tello.Tello.__publish (   self,
  event,
  data = None,
  args 
)
private

Definition at line 154 of file tello.py.

def tellopy._internal.tello.Tello.__recv_thread (   self)
private

Definition at line 727 of file tello.py.

def tellopy._internal.tello.Tello.__send_ack_log (   self,
  id 
)
private

Definition at line 511 of file tello.py.

def tellopy._internal.tello.Tello.__send_conn_req (   self)
private

Definition at line 142 of file tello.py.

def tellopy._internal.tello.Tello.__send_exposure (   self)
private

Definition at line 302 of file tello.py.

def tellopy._internal.tello.Tello.__send_start_video (   self)
private

Definition at line 267 of file tello.py.

def tellopy._internal.tello.Tello.__send_stick_command (   self)
private

Definition at line 478 of file tello.py.

def tellopy._internal.tello.Tello.__send_time_command (   self)
private

Definition at line 259 of file tello.py.

def tellopy._internal.tello.Tello.__send_video_encoder_rate (   self)
private

Definition at line 315 of file tello.py.

def tellopy._internal.tello.Tello.__send_video_mode (   self,
  mode 
)
private

Definition at line 272 of file tello.py.

def tellopy._internal.tello.Tello.__state_machine (   self,
  event,
  sender,
  data,
  args 
)
private

Definition at line 675 of file tello.py.

def tellopy._internal.tello.Tello.__video_thread (   self)
private

Definition at line 749 of file tello.py.

def tellopy._internal.tello.Tello.backward (   self,
  val 
)
Backward tells the drone to go in reverse. Pass in an int from 0-100.

Definition at line 340 of file tello.py.

def tellopy._internal.tello.Tello.clockwise (   self,
  val 
)
Clockwise tells the drone to rotate in a clockwise direction.
Pass in an int from 0-100.

Definition at line 355 of file tello.py.

def tellopy._internal.tello.Tello.connect (   self)
Connect is used to send the initial connection request to the drone.

Definition at line 133 of file tello.py.

def tellopy._internal.tello.Tello.counter_clockwise (   self,
  val 
)
CounterClockwise tells the drone to rotate in a counter-clockwise direction.
Pass in an int from 0-100.

Definition at line 363 of file tello.py.

def tellopy._internal.tello.Tello.down (   self,
  val 
)
Down tells the drone to descend. Pass in an int from 0-100.

Definition at line 330 of file tello.py.

def tellopy._internal.tello.Tello.flip_back (   self)
flip_back tells the drone to perform a backwards flip

Definition at line 379 of file tello.py.

def tellopy._internal.tello.Tello.flip_backleft (   self)
flip_backleft tells the drone to perform a backwards left flip

Definition at line 411 of file tello.py.

def tellopy._internal.tello.Tello.flip_backright (   self)
flip_backleft tells the drone to perform a backwards right flip

Definition at line 427 of file tello.py.

def tellopy._internal.tello.Tello.flip_forward (   self)
flip_forward tells the drone to perform a forwards flip

Definition at line 371 of file tello.py.

def tellopy._internal.tello.Tello.flip_forwardleft (   self)
flip_forwardleft tells the drone to perform a forwards left flip

Definition at line 403 of file tello.py.

def tellopy._internal.tello.Tello.flip_forwardright (   self)
flip_forwardright tells the drone to perform a forwards right flip

Definition at line 419 of file tello.py.

def tellopy._internal.tello.Tello.flip_left (   self)
flip_left tells the drone to perform a left flip

Definition at line 395 of file tello.py.

def tellopy._internal.tello.Tello.flip_right (   self)
flip_right tells the drone to perform a right flip

Definition at line 387 of file tello.py.

def tellopy._internal.tello.Tello.forward (   self,
  val 
)
Forward tells the drone to go forward. Pass in an int from 0-100.

Definition at line 335 of file tello.py.

def tellopy._internal.tello.Tello.get_alt_limit (   self)
... 

Definition at line 204 of file tello.py.

def tellopy._internal.tello.Tello.get_att_limit (   self)
... 

Definition at line 222 of file tello.py.

def tellopy._internal.tello.Tello.get_low_bat_threshold (   self)
... 

Definition at line 242 of file tello.py.

def tellopy._internal.tello.Tello.get_video_stream (   self)
Get_video_stream is used to prepare buffer object which receive video data from the drone.

Definition at line 112 of file tello.py.

def tellopy._internal.tello.Tello.land (   self)
Land tells the drone to come in for landing.

Definition at line 183 of file tello.py.

def tellopy._internal.tello.Tello.left (   self,
  val 
)
Left tells the drone to go left. Pass in an int from 0-100.

Definition at line 350 of file tello.py.

def tellopy._internal.tello.Tello.palm_land (   self)
Tells the drone to wait for a hand underneath it and then land.

Definition at line 191 of file tello.py.

def tellopy._internal.tello.Tello.quit (   self)
Quit stops the internal threads.

Definition at line 199 of file tello.py.

def tellopy._internal.tello.Tello.record_log_data (   self,
  path = None 
)

Definition at line 667 of file tello.py.

def tellopy._internal.tello.Tello.recv_file_data (   self,
  data 
)

Definition at line 640 of file tello.py.

def tellopy._internal.tello.Tello.right (   self,
  val 
)
Right tells the drone to go right. Pass in an int from 0-100.

Definition at line 345 of file tello.py.

def tellopy._internal.tello.Tello.send_packet (   self,
  pkt 
)
Send_packet is used to send a command packet to the drone.

Definition at line 520 of file tello.py.

def tellopy._internal.tello.Tello.send_packet_data (   self,
  command,
  type = 0x68,
  payload = [] 
)

Definition at line 535 of file tello.py.

def tellopy._internal.tello.Tello.set_alt_limit (   self,
  limit 
)

Definition at line 212 of file tello.py.

def tellopy._internal.tello.Tello.set_att_limit (   self,
  limit 
)

Definition at line 230 of file tello.py.

def tellopy._internal.tello.Tello.set_exposure (   self,
  level 
)
Set_exposure sets the drone camera exposure level. Valid levels are 0, 1, and 2.

Definition at line 294 of file tello.py.

def tellopy._internal.tello.Tello.set_loglevel (   self,
  level 
)
Set_loglevel controls the output messages. Valid levels are
LOG_ERROR, LOG_WARN, LOG_INFO, LOG_DEBUG and LOG_ALL.

Definition at line 105 of file tello.py.

def tellopy._internal.tello.Tello.set_low_bat_threshold (   self,
  threshold 
)

Definition at line 250 of file tello.py.

def tellopy._internal.tello.Tello.set_pitch (   self,
  pitch 
)
Set_pitch controls the forward and backward tilt of the drone.
Pass in an int from -1.0 ~ 1.0. (positive value will make the drone move forward)

Definition at line 460 of file tello.py.

def tellopy._internal.tello.Tello.set_roll (   self,
  roll 
)
Set_roll controls the the side to side tilt of the drone.
Pass in an int from -1.0 ~ 1.0. (positive value will make the drone move to the right)

Definition at line 469 of file tello.py.

def tellopy._internal.tello.Tello.set_throttle (   self,
  throttle 
)
Set_throttle controls the vertical up and down motion of the drone.
Pass in an int from -1.0 ~ 1.0. (positive value means upward)

Definition at line 442 of file tello.py.

def tellopy._internal.tello.Tello.set_video_encoder_rate (   self,
  rate 
)
Set_video_encoder_rate sets the drone video encoder rate.

Definition at line 308 of file tello.py.

def tellopy._internal.tello.Tello.set_video_mode (   self,
  zoom = False 
)
Tell the drone whether to capture 960x720 4:3 video, or 1280x720 16:9 zoomed video.
4:3 has a wider field of view (both vertically and horizontally), 16:9 is crisper.

Definition at line 278 of file tello.py.

def tellopy._internal.tello.Tello.set_yaw (   self,
  yaw 
)
Set_yaw controls the left and right rotation of the drone.
Pass in an int from -1.0 ~ 1.0. (positive value will make the drone turn to the right)

Definition at line 451 of file tello.py.

def tellopy._internal.tello.Tello.start_video (   self)
Start_video tells the drone to send start info (SPS/PPS) for video stream.

Definition at line 286 of file tello.py.

def tellopy._internal.tello.Tello.subscribe (   self,
  signal,
  handler 
)
Subscribe a event such as EVENT_CONNECTED, EVENT_FLIGHT_DATA, EVENT_VIDEO_FRAME and so on.

Definition at line 150 of file tello.py.

def tellopy._internal.tello.Tello.take_picture (   self)

Definition at line 321 of file tello.py.

def tellopy._internal.tello.Tello.takeoff (   self)
Takeoff tells the drones to liftoff and start flying.

Definition at line 163 of file tello.py.

def tellopy._internal.tello.Tello.throw_and_go (   self)
Throw_and_go starts a throw and go sequence

Definition at line 175 of file tello.py.

def tellopy._internal.tello.Tello.up (   self,
  val 
)
Up tells the drone to ascend. Pass in an int from 0-100.

Definition at line 325 of file tello.py.

def tellopy._internal.tello.Tello.wait_for_connection (   self,
  timeout = None 
)
Wait_for_connection will block until the connection is established.

Definition at line 137 of file tello.py.

Member Data Documentation

tellopy._internal.tello.Tello.__EVENT_CONN_ACK = event.Event('conn_ack')
staticprivate

Definition at line 39 of file tello.py.

tellopy._internal.tello.Tello.__EVENT_CONN_REQ = event.Event('conn_req')
staticprivate

Definition at line 38 of file tello.py.

tellopy._internal.tello.Tello.__EVENT_QUIT_REQ = event.Event('quit_req')
staticprivate

Definition at line 41 of file tello.py.

tellopy._internal.tello.Tello.__EVENT_TIMEOUT = event.Event('timeout')
staticprivate

Definition at line 40 of file tello.py.

tellopy._internal.tello.Tello.connected

Definition at line 76 of file tello.py.

tellopy._internal.tello.Tello.CONNECTED_EVENT = EVENT_CONNECTED
static

Definition at line 44 of file tello.py.

tellopy._internal.tello.Tello.debug

Definition at line 65 of file tello.py.

tellopy._internal.tello.Tello.EVENT_CONNECTED = event.Event('connected')
static

Definition at line 23 of file tello.py.

tellopy._internal.tello.Tello.EVENT_DISCONNECTED = event.Event('disconnected')
static

Definition at line 35 of file tello.py.

tellopy._internal.tello.Tello.EVENT_FILE_RECEIVED = event.Event('file received')
static

Definition at line 36 of file tello.py.

tellopy._internal.tello.Tello.EVENT_FLIGHT_DATA = event.Event('fligt_data')
static

Definition at line 26 of file tello.py.

tellopy._internal.tello.Tello.EVENT_LIGHT = event.Event('light')
static

Definition at line 25 of file tello.py.

tellopy._internal.tello.Tello.EVENT_LOG = EVENT_LOG_HEADER
static

Definition at line 28 of file tello.py.

tellopy._internal.tello.Tello.EVENT_LOG_CONFIG = event.Event('log_config')
static

Definition at line 31 of file tello.py.

tellopy._internal.tello.Tello.EVENT_LOG_DATA = event.Event('log_data')
static

Definition at line 30 of file tello.py.

tellopy._internal.tello.Tello.EVENT_LOG_HEADER = event.Event('log_header')
static

Definition at line 27 of file tello.py.

tellopy._internal.tello.Tello.EVENT_LOG_RAWDATA = event.Event('log_rawdata')
static

Definition at line 29 of file tello.py.

tellopy._internal.tello.Tello.EVENT_TIME = event.Event('time')
static

Definition at line 32 of file tello.py.

tellopy._internal.tello.Tello.EVENT_VIDEO_DATA = event.Event('video data')
static

Definition at line 34 of file tello.py.

tellopy._internal.tello.Tello.EVENT_VIDEO_FRAME = event.Event('video frame')
static

Definition at line 33 of file tello.py.

tellopy._internal.tello.Tello.EVENT_WIFI = event.Event('wifi')
static

Definition at line 24 of file tello.py.

tellopy._internal.tello.Tello.exposure

Definition at line 82 of file tello.py.

tellopy._internal.tello.Tello.file_recv

Definition at line 94 of file tello.py.

tellopy._internal.tello.Tello.FLIGHT_EVENT = EVENT_FLIGHT_DATA
static

Definition at line 47 of file tello.py.

tellopy._internal.tello.Tello.left_x

Definition at line 69 of file tello.py.

tellopy._internal.tello.Tello.left_y

Definition at line 70 of file tello.py.

tellopy._internal.tello.Tello.LIGHT_EVENT = EVENT_LIGHT
static

Definition at line 46 of file tello.py.

tellopy._internal.tello.Tello.lock

Definition at line 75 of file tello.py.

tellopy._internal.tello.Tello.log

Definition at line 81 of file tello.py.

tellopy._internal.tello.Tello.LOG_ALL = logger.LOG_ALL
static

Definition at line 61 of file tello.py.

tellopy._internal.tello.Tello.log_data

Definition at line 86 of file tello.py.

tellopy._internal.tello.Tello.log_data_file

Definition at line 87 of file tello.py.

tellopy._internal.tello.Tello.log_data_header_recorded

Definition at line 88 of file tello.py.

tellopy._internal.tello.Tello.LOG_DEBUG = logger.LOG_DEBUG
static

Definition at line 60 of file tello.py.

tellopy._internal.tello.Tello.LOG_ERROR = logger.LOG_ERROR
static

Definition at line 57 of file tello.py.

tellopy._internal.tello.Tello.LOG_EVENT = EVENT_LOG
static

Definition at line 48 of file tello.py.

tellopy._internal.tello.Tello.LOG_INFO = logger.LOG_INFO
static

Definition at line 59 of file tello.py.

tellopy._internal.tello.Tello.LOG_WARN = logger.LOG_WARN
static

Definition at line 58 of file tello.py.

tellopy._internal.tello.Tello.pkt_seq_num

Definition at line 66 of file tello.py.

tellopy._internal.tello.Tello.port

Definition at line 67 of file tello.py.

tellopy._internal.tello.Tello.prev_video_data_time

Definition at line 78 of file tello.py.

tellopy._internal.tello.Tello.right_x

Definition at line 71 of file tello.py.

tellopy._internal.tello.Tello.right_y

Definition at line 72 of file tello.py.

tellopy._internal.tello.Tello.sock

Definition at line 73 of file tello.py.

tellopy._internal.tello.Tello.state

Definition at line 74 of file tello.py.

tellopy._internal.tello.Tello.STATE_CONNECTED = state.State('connected')
static

Definition at line 54 of file tello.py.

tellopy._internal.tello.Tello.STATE_CONNECTING = state.State('connecting')
static

Definition at line 53 of file tello.py.

tellopy._internal.tello.Tello.STATE_DISCONNECTED = state.State('disconnected')
static

Definition at line 52 of file tello.py.

tellopy._internal.tello.Tello.STATE_QUIT = state.State('quit')
static

Definition at line 55 of file tello.py.

tellopy._internal.tello.Tello.tello_addr

Definition at line 64 of file tello.py.

tellopy._internal.tello.Tello.TIME_EVENT = EVENT_TIME
static

Definition at line 49 of file tello.py.

tellopy._internal.tello.Tello.udpsize

Definition at line 68 of file tello.py.

tellopy._internal.tello.Tello.video_data_loss

Definition at line 80 of file tello.py.

tellopy._internal.tello.Tello.video_data_size

Definition at line 79 of file tello.py.

tellopy._internal.tello.Tello.video_enabled

Definition at line 77 of file tello.py.

tellopy._internal.tello.Tello.video_encoder_rate

Definition at line 83 of file tello.py.

tellopy._internal.tello.Tello.VIDEO_FRAME_EVENT = EVENT_VIDEO_FRAME
static

Definition at line 50 of file tello.py.

tellopy._internal.tello.Tello.video_stream

Definition at line 84 of file tello.py.

tellopy._internal.tello.Tello.WIFI_EVENT = EVENT_WIFI
static

Definition at line 45 of file tello.py.

tellopy._internal.tello.Tello.wifi_strength

Definition at line 85 of file tello.py.

tellopy._internal.tello.Tello.zoom

Definition at line 91 of file tello.py.


The documentation for this class was generated from the following file:


tello_driver
Author(s): Jordy van Appeven
autogenerated on Wed May 13 2020 03:34:54