Public Member Functions | Public Attributes | Private Attributes | List of all members
mavros.ftp.FTPFile Class Reference
Inheritance diagram for mavros.ftp.FTPFile:
Inheritance graph
[legend]

Public Member Functions

def __del__ (self)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_value, traceback)
 
def __init__ (self, name, mode)
 
def close (self)
 
def closed (self)
 
def open (self, path, mode)
 
def read (self, size=1)
 
def seek (self, offset, whence=os.SEEK_SET)
 
def tell (self)
 
def truncate (self, size=0)
 
def write (self, bin_data)
 

Public Attributes

 mode
 
 name
 
 offset
 
 size
 

Private Attributes

 _read
 
 _write
 

Detailed Description

FCU file object.
Note that current PX4 firmware only support two connections simultaneously.

Definition at line 42 of file ftp.py.

Constructor & Destructor Documentation

def mavros.ftp.FTPFile.__init__ (   self,
  name,
  mode 
)

Definition at line 48 of file ftp.py.

def mavros.ftp.FTPFile.__del__ (   self)

Definition at line 53 of file ftp.py.

Member Function Documentation

def mavros.ftp.FTPFile.__enter__ (   self)

Definition at line 149 of file ftp.py.

def mavros.ftp.FTPFile.__exit__ (   self,
  exc_type,
  exc_value,
  traceback 
)

Definition at line 152 of file ftp.py.

def mavros.ftp.FTPFile.close (   self)

Definition at line 88 of file ftp.py.

def mavros.ftp.FTPFile.closed (   self)

Definition at line 146 of file ftp.py.

def mavros.ftp.FTPFile.open (   self,
  path,
  mode 
)
Supported modes:
    - 'w': write binary
    - 'r': read binary
    - 'cw': create excl & write

Definition at line 56 of file ftp.py.

def mavros.ftp.FTPFile.read (   self,
  size = 1 
)

Definition at line 101 of file ftp.py.

def mavros.ftp.FTPFile.seek (   self,
  offset,
  whence = os.SEEK_SET 
)

Definition at line 126 of file ftp.py.

def mavros.ftp.FTPFile.tell (   self)

Definition at line 123 of file ftp.py.

def mavros.ftp.FTPFile.truncate (   self,
  size = 0 
)

Definition at line 136 of file ftp.py.

def mavros.ftp.FTPFile.write (   self,
  bin_data 
)

Definition at line 111 of file ftp.py.

Member Data Documentation

mavros.ftp.FTPFile._read
private

Definition at line 80 of file ftp.py.

mavros.ftp.FTPFile._write
private

Definition at line 81 of file ftp.py.

mavros.ftp.FTPFile.mode

Definition at line 50 of file ftp.py.

mavros.ftp.FTPFile.name

Definition at line 49 of file ftp.py.

mavros.ftp.FTPFile.offset

Definition at line 86 of file ftp.py.

mavros.ftp.FTPFile.size

Definition at line 85 of file ftp.py.


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


mavros
Author(s): Vladimir Ermakov
autogenerated on Tue Jun 1 2021 02:36:27