From b81b28d3387dbced362649fbf125d4fdd6e1adf4 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Wed, 19 Feb 2020 19:40:44 +0100 Subject: [PATCH] api/builtins/Control: add scale property --- pybricks/builtins.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pybricks/builtins.py b/pybricks/builtins.py index f12a53f..bdb9981 100644 --- a/pybricks/builtins.py +++ b/pybricks/builtins.py @@ -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.