api/builtins/Control: add scale property

This commit is contained in:
Laurens Valk
2020-02-19 19:40:44 +01:00
parent 16e8af0f4d
commit b81b28d338
+6 -9
View File
@@ -29,17 +29,14 @@ class DCMotor():
class Control():
"""Class to interact with PID controller and settings."""
"""Class to interact with PID controller and settings.
def __init__(self, scale=1):
"""Initialize the PID controller.
.. data:: scale
Arguments:
scale (float):
Number of integer counts per unit of output. For example, two
counts per degree of the motor.
"""
pass
Scaling factor between the controlled integer variable
and the physical output. For example, for a single
motor this is the number of encoder pulses per degree of rotation.
"""
def limits(self, speed, acceleration, actuation):
"""Configure the maximum speed, acceleration, and actuation.