api/pupdevices/UltrasonicSensor: drop silent

Like its EV3 counterpart, this does not work reliably enough, so remove.
This commit is contained in:
Laurens Valk
2020-05-27 13:58:30 +02:00
committed by laurensvalk
parent e0ac54ec0a
commit f604dd321e
+1 -10
View File
@@ -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.