Skip to content

Commit

Permalink
pybricks.common.Control: Drop duty limit.
Browse files Browse the repository at this point in the history
This is now a per-motor voltage limit.

See pybricks/support#536
  • Loading branch information
laurensvalk committed Dec 1, 2021
1 parent 06a1542 commit eb09ecd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pybricks/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Control:
motor this is the number of encoder pulses per degree of rotation.
"""

def limits(self, speed, acceleration, duty, torque):
def limits(self, speed, acceleration, torque):
"""Configures the maximum speed, acceleration, duty, and torque.
If no arguments are given, this will return the current values.
Expand All @@ -119,8 +119,6 @@ def limits(self, speed, acceleration, duty, torque):
Maximum speed. All speed commands will be capped to this value.
acceleration (:ref:`acceleration` or :ref:`linacceleration`):
Maximum acceleration.
duty (:ref:`percentage`):
Maximum duty cycle during control.
torque (:ref:`torque`):
Maximum feedback torque during control.
"""
Expand Down

0 comments on commit eb09ecd

Please sign in to comment.