api/builtins/Control: add integral_range setter

This commit is contained in:
Laurens Valk
2020-02-09 23:39:16 +01:00
parent 477c913ec2
commit bdca322cef
+6 -1
View File
@@ -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