1
Prototype Summer School Programming the MBot to turn Turn for 5 seconds, then stop. Turn for 5 seconds, then repeat. How long to turn for Sets speed of motors left (M1) = Slow forwards right (M2) = Fast forwards Tests if it is within the rst 5 seconds Tests if 5 seconds has passed Sets speed of motors to 0 Resets the timer

Prototype Summer School 2016: Program an MBot robot to turn

Embed Size (px)

Citation preview

Page 1: Prototype Summer School 2016: Program an MBot robot to turn

Prototype Summer SchoolProgramming the MBot to turn

Turn for 5 seconds,then stop.

Turn for 5 seconds,then repeat.

How long to turn for

Sets speed of motorsleft (M1) = Slow forwardsright (M2) = Fast forwards

Tests if it is within thefirst 5 seconds

Tests if 5seconds haspassed

Sets speed of motors to 0

Resets the timer