mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 17:46:19 +00:00
22 lines
631 B
ReStructuredText
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
|