Skip to content

API: Abstract Methods

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

These methods are available for subclasses to have access to additional data or functionality that is not part of the main class or for debugging.

commandReceived

Called whenever a command is received from the flight controller.

Args:

command (int): the MSP command received
data (bytearray): the data, if any, associated with the command
error (bool): `True` if the received command refers to an error, `False` normally

Returns:

None

Clone this wiki locally