Module 3 · Grid Driving
Lesson 3-1 · Introduction to the Grid — Knowledge ChecksAnswer key
Do you need to change your driving toolkit to drive on the grid?
An intersection reads the same to the sensors as the circle's cross did, so the same functions navigate the grid with no changes. That's code reuse.
Which function drives the robot from where it is to the next intersection?
track_to_intersection() follows the line until both sensors hit the intersection, then drives 8.75 cm so the robot's center is on it — 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.