Skip to content

Commit

Permalink
api/pupdevices/UltrasonicSensor: drop silent
Browse files Browse the repository at this point in the history
Like its EV3 counterpart, this does not work reliably enough, so remove.
  • Loading branch information
laurensvalk committed May 26, 2020
1 parent 4788acc commit cdab48d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pybricks/pupdevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,10 @@ def __init__(self, port):
"""
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.
Expand All @@ -263,10 +258,6 @@ def presence(self):
"""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.
Expand Down

0 comments on commit cdab48d

Please sign in to comment.