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
Get step-by-step solutions from verified subject matter experts
