Public Member Functions | Public Attributes | List of all members
tellopy._internal.protocol.Packet Class Reference
Inheritance diagram for tellopy._internal.protocol.Packet:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, cmd, pkt_type=0x68, payload=b'')
 
def add_byte (self, val)
 
def add_int16 (self, val)
 
def add_time (self, time=datetime.datetime.now())
 
def fixup (self, seq_num=0)
 
def get_buffer (self)
 
def get_data (self)
 
def get_time (self, buf=None)
 

Public Attributes

 buf
 

Detailed Description

Definition at line 78 of file protocol.py.

Constructor & Destructor Documentation

def tellopy._internal.protocol.Packet.__init__ (   self,
  cmd,
  pkt_type = 0x68,
  payload = b'' 
)

Definition at line 79 of file protocol.py.

Member Function Documentation

def tellopy._internal.protocol.Packet.add_byte (   self,
  val 
)

Definition at line 112 of file protocol.py.

def tellopy._internal.protocol.Packet.add_int16 (   self,
  val 
)

Definition at line 115 of file protocol.py.

def tellopy._internal.protocol.Packet.add_time (   self,
  time = datetime.datetime.now() 
)

Definition at line 119 of file protocol.py.

def tellopy._internal.protocol.Packet.fixup (   self,
  seq_num = 0 
)

Definition at line 97 of file protocol.py.

def tellopy._internal.protocol.Packet.get_buffer (   self)

Definition at line 106 of file protocol.py.

def tellopy._internal.protocol.Packet.get_data (   self)

Definition at line 109 of file protocol.py.

def tellopy._internal.protocol.Packet.get_time (   self,
  buf = None 
)

Definition at line 126 of file protocol.py.

Member Data Documentation

tellopy._internal.protocol.Packet.buf

Definition at line 81 of file protocol.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