mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
doc/ev3devices/UltrasonicSensor: add freeze note
Simplify the text for silent mode, and add a note to say what to do if it stops working when the UART gets confused.
This commit is contained in:
@@ -222,13 +222,10 @@ class UltrasonicSensor:
|
||||
|
||||
Arguments:
|
||||
silent (bool): Choose ``True`` to turn the sensor off after
|
||||
measuring the distance. Choose ``False`` to leave
|
||||
the sensor on. When you choose
|
||||
``silent=True``, the sensor does not
|
||||
emit sounds waves except when taking the
|
||||
measurement. This reduces interference with other
|
||||
ultrasonic sensors, but turning the sensor off takes
|
||||
approximately 300 ms each time.
|
||||
measuring the distance. This reduces interference
|
||||
with other ultrasonic sensors. If you do
|
||||
this too frequently, the sensor can freeze.
|
||||
If this happens, unplug it and plug it back in.
|
||||
|
||||
Returns:
|
||||
:ref:`distance`: Distance.
|
||||
|
||||
Reference in New Issue
Block a user