В момента ресурсът е наличен само на английски

Align perpendicular to a wall using EV3 Sensors Pro Preview

The task about aligning the robot is quite important, when it comes to competitons. We will talk more about competition robotics in the next section. Now, we will try to solve the task to align our robots using ultrasonic sensors.

Необходимо е да се абонирате за FLLCasts.com, за да достъпите това видео

Абонирай се

  • #959
  • 04 Jan 2018

The setup

We have a robot with two ultrasonic sensors attached to the front of the robot facing forward. The task is to align the robot perpendicular to a wall at 10 cm distance, no matter of it starting orientation. So the robot may start either facing straight the wall

or tilted to the left

or tilted to the right.

However, no matter how we position it, at the end of the program he must be straight:

 

The problem

At first the task may seem simple. Just move forward, until the Ultrasonic sensor detects an object less than 10 cm away, then stop the corresponding motor. However, you do not know, which sensor will detect the wall first. Try solving the task using threads and keeping in mind the problem above.

Курсове и занятия включващи този Урок

Този Урок е използван в следните курсове и занятия.

Image for Instructors Remote Training
  • 136
  • 280:11
  • 156
Image for Threads and Multi-threading
  • 5
  • 1
  • 9
  • 3d_rotation 1