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 2135 of file mavutil.py.
def pymavlink.mavutil.MavlinkSerialPort.__init__ | ( | self, | |
portname, | |||
baudrate, | |||
devnum = 0 , |
|||
devbaud = 0 , |
|||
timeout = 3 , |
|||
debug = 0 |
|||
) |
Definition at line 2138 of file mavutil.py.
|
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.
|
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.