Answered step by step
Verified Expert Solution
Question
1 Approved Answer
There is a straight road many miles long. The road is black in color, but it has a white line/strip running in its middle. A
There is a straight road many miles long. The road is black in color, but it has a white line/strip running in its middle. A car (shown as a red rectangle) is supposed to travel on the white line. The car is driven by a motor system, and there are two color sensors in front of the car. The color sensors are marked by two black dots as shown in the figure below, and each color sensor can see the color of the road directly below where they are mounted. Draw a flowchart/activity diagram which can eventually be run on some Arduino like system, which will drive the car forward on the white line/strip. Initially the car starts in the position as shown above. The two sensors are on the white line, and car is moving forward (i.e. no steering). The car would have moved forward perfectly, but it can veer off due to random effects beyond your control. If the car veers off the white line, then the flowchart algorithm should direct it to steer back onto the white line again. In the boxes of the flowchart, you are only allowed to use some/all of the following sentences / words: 'start', 'turn left', 'turn right', 'move forward (no steer)', 'is the left sensor seeing white?', 'is the left sensor seeing black?', 'is the right sensor seeing white?', 'is the right sensor seeing black?', 'yes', 'and', 'no'. Note there is no 'stopping' option. There is a straight road many miles long. The road is black in color, but it has a white line/strip running in its middle. A car (shown as a red rectangle) is supposed to travel on the white line. The car is driven by a motor system, and there are two color sensors in front of the car. The color sensors are marked by two black dots as shown in the figure below, and each color sensor can see the color of the road directly below where they are mounted. Draw a flowchart/activity diagram which can eventually be run on some Arduino like system, which will drive the car forward on the white line/strip. Initially the car starts in the position as shown above. The two sensors are on the white line, and car is moving forward (i.e. no steering). The car would have moved forward perfectly, but it can veer off due to random effects beyond your control. If the car veers off the white line, then the flowchart algorithm should direct it to steer back onto the white line again. In the boxes of the flowchart, you are only allowed to use some/all of the following sentences / words: 'start', 'turn left', 'turn right', 'move forward (no steer)', 'is the left sensor seeing white?', 'is the left sensor seeing black?', 'is the right sensor seeing white?', 'is the right sensor seeing black?', 'yes', 'and', 'no'. Note there is no 'stopping' option
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started