mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
pybricks.common.Control: Fix docstring and type hints for limits().
Fixes https://github.com/pybricks/support/issues/565
This commit is contained in:
@@ -110,7 +110,7 @@ class Control:
|
||||
"""
|
||||
|
||||
def limits(self, speed, acceleration, torque):
|
||||
"""Configures the maximum speed, acceleration, duty, and torque.
|
||||
"""Configures the maximum speed, acceleration, and torque.
|
||||
|
||||
If no arguments are given, this will return the current values.
|
||||
|
||||
|
||||
@@ -23,15 +23,16 @@ class Control:
|
||||
self,
|
||||
speed: Optional[int] = None,
|
||||
acceleration: Optional[int] = None,
|
||||
actuation: Optional[int] = None,
|
||||
torque: Optional[int] = None,
|
||||
) -> None: ...
|
||||
def pid(self) -> Tuple[int, int, int, int, int, int]: ...
|
||||
def pid(self) -> Tuple[int, int, int, None, int]: ...
|
||||
@overload
|
||||
def pid(
|
||||
self,
|
||||
kp: Optional[int] = None,
|
||||
ki: Optional[int] = None,
|
||||
kd: Optional[int] = None,
|
||||
reserved: Optional[int] = None,
|
||||
integral_rate: Optional[int] = None,
|
||||
) -> None: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user