Question: Create a sequence that will allow the robot to move in a square pattern for as long as no obstacle is detected. It should run

Create a sequence that will allow the robot to move in a square pattern for as long as no obstacle is detected. It should run for 50 cm in a straight line, pause for 2 seconds once it reaches a corner, and then turn right before repeating the sequence. If the robot detects an obstacle it will find it way around to move away from the obstacle. If the robot detects a red color on its path it will move 20cm backward and it should make a turn to move away from the red color on its path.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!