0% found this document useful (0 votes)
241 views

Robot Flowchart

The document outlines the steps a robot takes to complete a race track, including starting and ending the timer, storing and displaying the time, checking boundaries, adjusting speed based on detected colors, and turning or moving forward accordingly until it reaches the finish line or crashes.

Uploaded by

api-297074626
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
241 views

Robot Flowchart

The document outlines the steps a robot takes to complete a race track, including starting and ending the timer, storing and displaying the time, checking boundaries, adjusting speed based on detected colors, and turning or moving forward accordingly until it reaches the finish line or crashes.

Uploaded by

api-297074626
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Start

Timer

End of race

Return Time

Timer

Count 1
Second
Get Time

Return
Movement

Display Time on
Robot Display.

Movement
Store Time in
Times.txt

Return Crash

Store Robots Time

Check
Boundary

End

End of race

Yes

Check
Boundary

Does robot see


finish line?

No

Movement

Return Time
Is Robot over red
line?

No

Has robot
detected green?

Yes

Yes

Set Speed 30

Set speed to
30

No

Return Crash

Has robot
detected white?

Yes

Set Speed to
60

Move Robot 1
rotations

No

Turn 90 degrees
clockwise

Turn 90 degrees
anticlockwise

Has robot
detected blue?

Return
Movement

Yes

Set speed to
100

Move robot 5
rotations

No

You might also like