Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

How do you decide what headings to use in the body of the report?

Answered: 1 week ago

Question

what is a peer Group? Importance?

Answered: 1 week ago

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago