Upload
neil-winterburn
View
9
Download
2
Embed Size (px)
Citation preview
Prototype Summer SchoolProgramming the MBot to move forwards
Forwards for 5 seconds,then stop.
Forwards for 5 seconds,pause for 1 second,then repeat.
How many seconds to move for
Sets speed of motors to 50
Tests if it is after the first 3seconds
Tests if it is within the first 3 seconds
Tests if fiveseconds haspassed
Sets speed of motors to 0
Tests if it is after the first 4seconds and resets the timer