jacdac.motor

Submodules

Package Contents

Classes

MotorClient

A DC motor.

class jacdac.motor.MotorClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A DC motor. Implements a client for the Motor service.

property speed: float | None

Relative speed of the motor. Use positive/negative values to run the motor forwards and backwards. Positive is recommended to be clockwise rotation and negative counterclockwise. A speed of 0 while enabled acts as brake., _: /

property enabled: bool | None

Turn the power to the motor on/off.,

property load_torque: float | None

(Optional) Torque required to produce the rated power of an electrical motor at load speed., _: kg/cm

property load_rotation_speed: float | None

(Optional) Revolutions per minute of the motor under full load., _: rpm

property reversible: bool | None

(Optional) Indicates if the motor can run backwards.,