|
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) |
|
|
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) |
|
Definition at line 22 of file tello.py.
def tellopy._internal.tello.Tello.__init__ |
( |
|
self, |
|
|
|
port = 9000 |
|
) |
| |
def tellopy._internal.tello.Tello.__fix_range |
( |
|
self, |
|
|
|
val, |
|
|
|
min = -1.0 , |
|
|
|
max = 1.0 |
|
) |
| |
|
private |
def tellopy._internal.tello.Tello.__process_packet |
( |
|
self, |
|
|
|
data |
|
) |
| |
|
private |
def tellopy._internal.tello.Tello.__publish |
( |
|
self, |
|
|
|
event, |
|
|
|
data = None , |
|
|
|
args |
|
) |
| |
|
private |
def tellopy._internal.tello.Tello.__recv_thread |
( |
|
self | ) |
|
|
private |
def tellopy._internal.tello.Tello.__send_ack_log |
( |
|
self, |
|
|
|
id |
|
) |
| |
|
private |
def tellopy._internal.tello.Tello.__send_conn_req |
( |
|
self | ) |
|
|
private |
def tellopy._internal.tello.Tello.__send_exposure |
( |
|
self | ) |
|
|
private |
def tellopy._internal.tello.Tello.__send_start_video |
( |
|
self | ) |
|
|
private |
def tellopy._internal.tello.Tello.__send_stick_command |
( |
|
self | ) |
|
|
private |
def tellopy._internal.tello.Tello.__send_time_command |
( |
|
self | ) |
|
|
private |
def tellopy._internal.tello.Tello.__send_video_encoder_rate |
( |
|
self | ) |
|
|
private |
def tellopy._internal.tello.Tello.__send_video_mode |
( |
|
self, |
|
|
|
mode |
|
) |
| |
|
private |
def tellopy._internal.tello.Tello.__state_machine |
( |
|
self, |
|
|
|
event, |
|
|
|
sender, |
|
|
|
data, |
|
|
|
args |
|
) |
| |
|
private |
def tellopy._internal.tello.Tello.__video_thread |
( |
|
self | ) |
|
|
private |
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 | ) |
|
def tellopy._internal.tello.Tello.get_att_limit |
( |
|
self | ) |
|
def tellopy._internal.tello.Tello.get_low_bat_threshold |
( |
|
self | ) |
|
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 |
|
) |
| |
def tellopy._internal.tello.Tello.recv_file_data |
( |
|
self, |
|
|
|
data |
|
) |
| |
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 = [] |
|
) |
| |
def tellopy._internal.tello.Tello.set_alt_limit |
( |
|
self, |
|
|
|
limit |
|
) |
| |
def tellopy._internal.tello.Tello.set_att_limit |
( |
|
self, |
|
|
|
limit |
|
) |
| |
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 |
|
) |
| |
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 | ) |
|
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.
tellopy._internal.tello.Tello.__EVENT_CONN_ACK = event.Event('conn_ack') |
|
staticprivate |
tellopy._internal.tello.Tello.__EVENT_CONN_REQ = event.Event('conn_req') |
|
staticprivate |
tellopy._internal.tello.Tello.__EVENT_QUIT_REQ = event.Event('quit_req') |
|
staticprivate |
tellopy._internal.tello.Tello.__EVENT_TIMEOUT = event.Event('timeout') |
|
staticprivate |
tellopy._internal.tello.Tello.connected |
tellopy._internal.tello.Tello.debug |
tellopy._internal.tello.Tello.EVENT_DISCONNECTED = event.Event('disconnected') |
|
static |
tellopy._internal.tello.Tello.EVENT_FILE_RECEIVED = event.Event('file received') |
|
static |
tellopy._internal.tello.Tello.EVENT_FLIGHT_DATA = event.Event('fligt_data') |
|
static |
tellopy._internal.tello.Tello.EVENT_LIGHT = event.Event('light') |
|
static |
tellopy._internal.tello.Tello.EVENT_LOG_CONFIG = event.Event('log_config') |
|
static |
tellopy._internal.tello.Tello.EVENT_LOG_HEADER = event.Event('log_header') |
|
static |
tellopy._internal.tello.Tello.EVENT_LOG_RAWDATA = event.Event('log_rawdata') |
|
static |
tellopy._internal.tello.Tello.EVENT_TIME = event.Event('time') |
|
static |
tellopy._internal.tello.Tello.EVENT_VIDEO_DATA = event.Event('video data') |
|
static |
tellopy._internal.tello.Tello.EVENT_VIDEO_FRAME = event.Event('video frame') |
|
static |
tellopy._internal.tello.Tello.EVENT_WIFI = event.Event('wifi') |
|
static |
tellopy._internal.tello.Tello.exposure |
tellopy._internal.tello.Tello.file_recv |
tellopy._internal.tello.Tello.left_x |
tellopy._internal.tello.Tello.left_y |
tellopy._internal.tello.Tello.LIGHT_EVENT = EVENT_LIGHT |
|
static |
tellopy._internal.tello.Tello.lock |
tellopy._internal.tello.Tello.log |
tellopy._internal.tello.Tello.LOG_ALL = logger.LOG_ALL |
|
static |
tellopy._internal.tello.Tello.log_data |
tellopy._internal.tello.Tello.log_data_file |
tellopy._internal.tello.Tello.log_data_header_recorded |
tellopy._internal.tello.Tello.LOG_DEBUG = logger.LOG_DEBUG |
|
static |
tellopy._internal.tello.Tello.LOG_ERROR = logger.LOG_ERROR |
|
static |
tellopy._internal.tello.Tello.LOG_EVENT = EVENT_LOG |
|
static |
tellopy._internal.tello.Tello.LOG_INFO = logger.LOG_INFO |
|
static |
tellopy._internal.tello.Tello.LOG_WARN = logger.LOG_WARN |
|
static |
tellopy._internal.tello.Tello.pkt_seq_num |
tellopy._internal.tello.Tello.port |
tellopy._internal.tello.Tello.prev_video_data_time |
tellopy._internal.tello.Tello.right_x |
tellopy._internal.tello.Tello.right_y |
tellopy._internal.tello.Tello.sock |
tellopy._internal.tello.Tello.state |
tellopy._internal.tello.Tello.STATE_CONNECTING = state.State('connecting') |
|
static |
tellopy._internal.tello.Tello.STATE_DISCONNECTED = state.State('disconnected') |
|
static |
tellopy._internal.tello.Tello.tello_addr |
tellopy._internal.tello.Tello.TIME_EVENT = EVENT_TIME |
|
static |
tellopy._internal.tello.Tello.udpsize |
tellopy._internal.tello.Tello.video_data_loss |
tellopy._internal.tello.Tello.video_data_size |
tellopy._internal.tello.Tello.video_enabled |
tellopy._internal.tello.Tello.video_encoder_rate |
tellopy._internal.tello.Tello.video_stream |
tellopy._internal.tello.Tello.WIFI_EVENT = EVENT_WIFI |
|
static |
tellopy._internal.tello.Tello.wifi_strength |
tellopy._internal.tello.Tello.zoom |
The documentation for this class was generated from the following file: