Skip to content

brian.motors.motor_limits

brian.motors

UNLIMITED_ACCELERATION

Maximum available acceleration limit (disables speed ramping)

UNLIMITED_TORQUE

Maximum available torque limit

UNLIMITED_POWER

Maximum available power limit

MotorLimits class objects

class MotorLimits()

A class to manage and configure the limits of a motor.

battery_power

@property
def battery_power() -> int

Query the power draw limit.

Returns:

Battery power consumption limit, in milli-watts.

battery_power

@battery_power.setter
def battery_power(mW: int) -> None

Set the power draw limit.

Arguments:

  • mw: Maximum power allowed to draw from the battery, in milli-watts.

torque

@property
def torque() -> int

Query the maximum speed limit.

Returns:

Maximum speed in degrees per second.

torque

@torque.setter
def torque(deg_per_sec: int) -> None

Set the maximum speed limit.

Arguments:

  • deg_per_sec: Maximum speed in degrees per second.

acceleration

@property
def acceleration() -> int

Query the maximum acceleration limit.

Returns:

Maximum acceleration in degrees per second squared.

acceleration

@acceleration.setter
def acceleration(deg_per_sec_sq: int) -> None

Set the maximum acceleration limit.

Arguments:

  • deg_per_sec_sq: Maximum acceleration in degrees per second squared.