Robotics C++ Physics II AP Physics B Electronics Java Astronomy Other Courses Summer Session  

Loops

Example 1

Make a sound, wait one second, wait for a light intensity greater than 50 and then exit loop and say Thank You

Beeps and waits (forever) until see light with stated condition

Example 2

Highlight the loop block, set duration of loop at bottom. In this case it is for a count of 5 - what are the units?

At the count of 5, the robot exits the loop. What does it do in the loop?