Module 3 · Grid Driving
Lesson 1 · Introduction to the Grid — Knowledge ChecksAnswer key
Do you need to change your LineTrack class to drive on the grid?
An intersection reads the same to the sensors as the circle's cross did, so the same class navigates the grid with no changes. That's code reuse.
Which LineTrack method drives the robot from where it is to the next intersection?
track_until_cross() follows the line and stops when both sensors hit the intersection — one grid segment per call.
You run the program and the robot reports 'Intersection reached!' instantly without moving. Why?
If it starts on a cross, is_at_cross() is already true and the follow loop exits at once. Back it onto a plain line segment to start.