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 2135 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 2138 of file mavutil.py.

Member Function Documentation

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

Definition at line 2178 of file mavutil.py.

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

Definition at line 2154 of file mavutil.py.

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

Definition at line 2218 of file mavutil.py.

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

Definition at line 2203 of file mavutil.py.

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

Definition at line 2228 of file mavutil.py.

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

Definition at line 2159 of file mavutil.py.

Member Data Documentation

pymavlink.mavutil.MavlinkSerialPort._debug
private

Definition at line 2143 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.baudrate

Definition at line 2141 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.buf

Definition at line 2144 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.mav

Definition at line 2147 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.port

Definition at line 2145 of file mavutil.py.

pymavlink.mavutil.MavlinkSerialPort.timeout

Definition at line 2142 of file mavutil.py.


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


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Jul 7 2019 03:22:08