prototype summer school 2016: program an mbot robot move forwards

Post on 21-Mar-2017

9 Views

Category:

Education

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

top related