mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-15 02:54:52 +00:00
api/pupdevices/UltrasonicSensor: drop silent
Like its EV3 counterpart, this does not work reliably enough, so remove.
This commit is contained in:
committed by
laurensvalk
parent
e0ac54ec0a
commit
f604dd321e
+1
-10
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user