Skip to content

API: Connection Methods

Jonathan Dean edited this page Sep 28, 2015 · 1 revision

The PyMSP library has a number of simple methods to make communicating with the flight controller easier. This is a list of all public methods and attributes for the library.

#Connection Methods

connect

Connects to the specified serial port at the specified baud rate.

Args:

portName (str): name of the serial port to use (e.g., `COM3` in Windows, `/dev/ttyAMA0` in Linux)
baudRate (int): speed to connect at; usually 115200 for CleanFlight

Returns:

Bool: `True` if the connection was successful, `False` otherwise

##disconnect

Disconnects the serial port

Args:

None

Returns:

None

Clone this wiki locally