jacdac.servo
Submodules
Package Contents
Classes
Servo is a small motor with arm that can be pointing at a specific direction. |
- class jacdac.servo.ServoClient(bus: jacdac.bus.Bus, role: str, *, missing_actual_angle_value: Optional[float] = None)
Bases:
jacdac.bus.SensorClient
- Servo is a small motor with arm that can be pointing at a specific direction.
Typically a servo angle is between 0° and 180° where 90° is the middle resting position.
The min_pulse/max_pulse may be read-only if the servo is permanently affixed to its Jacdac controller.
Implements a client for the Servo service.
- property offset Optional[float]
Correction applied to the angle to account for the servo arm drift., _: °
- property min_pulse Optional[int]
(Optional) The length of pulse corresponding to lowest angle., _: us
- property max_pulse Optional[int]
(Optional) The length of pulse corresponding to highest angle., _: us