From f604dd321e2aed7d941829ab74f19b5d736b5995 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Tue, 26 May 2020 16:53:44 +0200 Subject: [PATCH] api/pupdevices/UltrasonicSensor: drop silent Like its EV3 counterpart, this does not work reliably enough, so remove. --- pybricks/pupdevices.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pybricks/pupdevices.py b/pybricks/pupdevices.py index 711c611..792d5a5 100644 --- a/pybricks/pupdevices.py +++ b/pybricks/pupdevices.py @@ -244,15 +244,10 @@ class UltrasonicSensor: """ pass - def distance(self, silent=False): + def distance(self): """Measures the distance between the sensor and an object using ultrasonic sound waves. - Arguments: - silent (bool): Choose ``True`` to turn the sensor off after - measuring the distance. This reduces interference - with other ultrasonic sensors. - Returns: :ref:`distance`: Distance. @@ -263,10 +258,6 @@ class UltrasonicSensor: """Checks for the presence of other ultrasonic sensors by detecting ultrasonic sounds. - If the other ultrasonic sensor is operating in silent mode, you can - only detect the presence of that sensor while it is taking a - measurement. - Returns: bool: ``True`` if ultrasonic sounds are detected, ``False`` if not.