Upload
neil-winterburn
View
42
Download
2
Embed Size (px)
Citation preview
Prototype Summer SchoolProgramming the MBot to spin
Spin for 2 seconds,then stop.
Spin for 5 seconds,then repeat.
Tests if it is withinthe first 2 seconds
Sets speed of motorsleft (M1) = backwardsright (M2) = forwards
Tests if it is within thefirst 5 seconds
Tests if 2seconds haspassed
Sets speed of motors to 0
Resets the timer
Sets speed of motorsleft (M1) = backwardsright (M2) = forwards