mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
api/builtins/Control: add integral_range setter
This commit is contained in:
@@ -56,7 +56,7 @@ class Control():
|
||||
"""
|
||||
pass
|
||||
|
||||
def pid(self, kp, ki, kd):
|
||||
def pid(self, kp, ki, kd, integral_range):
|
||||
"""Get or set the PID values for position and speed control.
|
||||
|
||||
If no arguments are given, this will return the current values.
|
||||
@@ -67,6 +67,11 @@ class Control():
|
||||
ki (int): Integral position control constant.
|
||||
kd (int): Derivative position (or proportional speed) control
|
||||
constant.
|
||||
kd (int): Derivative position (or proportional speed) control
|
||||
constant.
|
||||
integral_range (:ref:`angle` or :ref:`distance`): Region around
|
||||
the target angle or distance, in which integral control errors
|
||||
are accumulated.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user