j5.backends.console.sr.v4.servo_board module¶
Console Backend for the SR v4 Servo Board.
-
class
j5.backends.console.sr.v4.servo_board.
SRV4ServoBoardConsoleBackend
(serial: str, console_class: Type[j5.backends.console.console.Console] = <class 'j5.backends.console.console.Console'>)[source]¶ Bases:
j5.components.servo.ServoInterface
,j5.backends.backend.Backend
The console implementation of the SR v4 Servo board.
-
board
¶
-
classmethod
discover
() → Set[j5.boards.board.Board][source]¶ Discover boards that this backend can control.
Returns: set of boards that this backend can control.
-
firmware_version
¶ The firmware version reported by the board.
Returns: firmware version reported by the board, if any.
-
get_servo_position
(identifier: int) → Optional[float][source]¶ Get the servo position.
Parameters: identifier – Port of servo to check. Returns: Position of servo.
-
serial
¶ The serial number reported by the board.
Returns: serial number reported by the board.
-
set_servo_position
(identifier: int, position: Optional[float]) → None[source]¶ Set the servo position.
Parameters: - identifier – Port of servo to set position.
- position – Position to set the servo to.
Raises: ValueError – Unknown servo identifier.
-