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:
Laurens Valk
2020-04-07 13:41:04 +02:00
parent d2a480f9f9
commit 32ab928aa8
+4 -7
View File
@@ -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.