j5.boards.sr.v4.motor_board module

Classes for the SR v4 Motor Board.

class j5.boards.sr.v4.motor_board.MotorBoard(serial: str, backend: j5.backends.backend.Backend, *, safe_state: Union[float, j5.components.motor.MotorSpecialState] = <MotorSpecialState.BRAKE: 1>)[source]

Bases: j5.boards.board.Board

Student Robotics v4 Motor Board.

firmware_version

Get the firmware version of the board.

Returns:Firmware version of the board.
make_safe() → None[source]

Make this board safe.

motors

Get the motors on this board.

Returns:List of motors attached to the board.
name = 'Student Robotics v4 Motor Board'
serial_number

Get the serial number of the board.

Returns:Serial number of the board.
static supported_components() → Set[Type[j5.components.component.Component]][source]

List the types of components supported by this board.

Returns:Set of components supported by the board.