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 torque limit.

Returns:

Maximum torque that will be applied to the motor axle, in milli-newton-meters.

torque

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

Set the torque limit.

Arguments:

  • mNm: Maximum torque that will be applied to the motor axle, in milli-newton-meters.

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.