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 | |
an object that looks like a serial port, but transmits using mavlink SERIAL_CONTROL packets
Definition at line 2115 of file mavutil.py.
def pymavlink.mavutil.MavlinkSerialPort.__init__ | ( | self, | |
portname, | |||
baudrate, | |||
devnum = 0 , |
|||
devbaud = 0 , |
|||
timeout = 3 , |
|||
debug = 0 |
|||
) |
Definition at line 2118 of file mavutil.py.
|
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.
|
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.