Unit 6: Loops & Iteration
Write repeated actions, timed behavior, and multi-device commands without blocking the rest of the robot.
6Lessons
0Completed
Not StartedCurrent Status
Lesson Roadmap
6.1 · opModeIsActive()Lesson 6.1: Keeping a LinearOpMode Safe with while(opModeIsActive())Open6.2 · for LoopsLesson 6.2: Using for Loops to Repeat Robot Actions CleanlyOpen6.3 · getRuntime() TimingLesson 6.3: Timing Robot Actions with getRuntime()Open6.4 · Hardware ArraysLesson 6.4: Looping Through Hardware Arrays with for-eachOpen6.5 · Non-Blocking TimerLesson 6.5: Build a Non-Blocking Timer for Parallel Mechanism ControlOpenUnit 6 · Coding ChallengeUnit 6 Comprehensive Coding Challenge: Non-Blocking Autonomous LoopOpen
What This Unit Covers
Use loop-based control structures safely so code stops when the OpMode stops.
Automate repeated actions and multi-device commands with for loops and array iteration.
Build timer-based behavior that runs in parallel without freezing the rest of the robot.
Review the sequence and goals here, then resume at your first incomplete lesson.
Already know this unit?
Complete the comprehensive coding challenge to prove every unit objective and jump directly to Unit 7: Hardware Mapping.
Stuck on this lesson?
Ask about anything on this page. It can see which lesson you have open and which part you are reading.