Files
pybricks-api/doc/ev3dev/examples/robot_educator.rst
T
2019-06-04 14:47:52 +02:00

22 lines
631 B
ReStructuredText

Robot Educator
=====================
This example makes the Robot Educator (:numref:`fig_robot_educator`) drive
until it sees an obstacle. It then backs up, turns around, and starts driving
again.
You can find building instructions for the Robot Educator on the `LEGO
Education website
<https://education.lego.com/en-us/support/mindstorms-ev3/building-instructions#robot>`_.
.. _fig_robot_educator:
.. figure:: ../images/ultrasonic_sensor_driving_base.jpg
:width: 50 %
:alt: robot_educator
:align: center
Robot Educator with the Ultrasonic Sensor
.. literalinclude:: ../../../examples/ev3/robot_educator/main.py