Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
pymavlink.mavutil.MavlinkSerialPort Class Reference
Inheritance diagram for pymavlink.mavutil.MavlinkSerialPort:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, portname, baudrate, devnum=0, devbaud=0, timeout=3, debug=0)
 
def debug (self, s, level=1)
 
def flushInput (self)
 
def read (self, n)
 
def setBaudrate (self, baudrate)
 
def write (self, b)
 

Public Attributes

 baudrate
 
 buf
 
 mav
 
 port
 
 timeout
 

Private Member Functions

def _recv (self)
 

Private Attributes

 _debug
 

Detailed Description

an object that looks like a serial port, but
transmits using mavlink SERIAL_CONTROL packets

Definition at line 2115 of file mavutil.py.

Constructor & Destructor Documentation

def pymavlink.mavutil.MavlinkSerialPort.__init__ (   self,
  portname,
  baudrate,
  devnum = 0,
  devbaud = 0,
  timeout = 3,
  debug = 0 
)

Definition at line 2118 of file mavutil.py.

Member Function Documentation

def pymavlink.mavutil.MavlinkSerialPort._recv (   self)
private
read some bytes into self.buf

Definition at line 2158 of file mavutil.py.

def pymavlink.mavutil.MavlinkSerialPort.debug (   self,
  s,
  level = 1 
)
write some debug text

Definition at line 2134 of file mavutil.py.

def pymavlink.mavutil.MavlinkSerialPort.flushInput (   self)
flush any pending input

Definition at line 2198 of file mavutil.py.

def pymavlink.mavutil.MavlinkSerialPort.read (   self,
  n 
)
read some bytes

Definition at line 2183 of file mavutil.py.

def pymavlink.mavutil.MavlinkSerialPort.setBaudrate (   self,
  baudrate 
)
set baudrate

Definition at line 2208 of file mavutil.py.

def pymavlink.mavutil.MavlinkSerialPort.write (   self,
  b 
)
write some bytes

Definition at line 2139 of file mavutil.py.

Member Data Documentation

pymavlink.mavutil.MavlinkSerialPort._debug
private

Definition at line 2123 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.baudrate

Definition at line 2121 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.buf

Definition at line 2124 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.mav

Definition at line 2127 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.port

Definition at line 2125 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.timeout

Definition at line 2122 of file mavutil.py.


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


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Apr 7 2019 02:06:02