From 4a8912ff998b24728e3b50add3b826fcaa1394f0 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Sun, 9 Feb 2020 23:39:59 +0100 Subject: [PATCH] api/builtins/Control: add done method This can be used to check if a maneuver is done yet --- pybricks/builtins.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pybricks/builtins.py b/pybricks/builtins.py index 29ef985..bd89a62 100644 --- a/pybricks/builtins.py +++ b/pybricks/builtins.py @@ -114,14 +114,11 @@ class Control(): """ pass - def active(self): - """Check whether the controller is currently active. - - When active, it continuously adjusts the actuation to reach the control - objective. When it is passive, the control signal is zero or constant. + def done(self): + """Check whether an ongoing command or maneuver is done. Returns: - bool: ``True`` if the controller is active,``False`` if not. + bool: ``True`` if the maneuver is done,``False`` if not. """ pass