Robot Flowchart
Robot Flowchart
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
Check
Boundary
End
End of race
Yes
Check
Boundary
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