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.