Module 2 · Line Tracking
Lesson 7 · Detecting Intersections — Knowledge ChecksAnswer key
Which condition detects an intersection (both sensors on the line)?
A cross means BOTH sensors are on black at once, so both comparisons must be true — that's and. or would fire during normal following too.
Why is there a time.sleep(0.3) right after the robot turns at the cross?
Right after turning, both sensors are still on the cross. The brief pause lets the robot drive clear so it doesn't detect the same intersection over and over.
During normal line following (not at a cross), which branch of the if/else runs?
Only one branch runs. When the sensors differ (not both high), the cross condition is false, so the else branch does normal following.