1
Prototype Summer School Programming 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 rst 3 seconds Tests if it is within the rst 3 seconds Tests if ve seconds has passed Sets speed of motors to 0 Tests if it is after the rst 4 seconds and resets the timer

Prototype Summer School 2016: Program an MBot robot move forwards

Embed Size (px)

Citation preview

Page 1: Prototype Summer School 2016: Program an MBot robot move forwards

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