Skip to main content
Module 3 · Grid Driving

Lesson 3-1 · Introduction to the Grid — Knowledge ChecksAnswer key

Correct answers are marked and the explanation follows each question.

  1. Do you need to change your driving toolkit to drive on the grid?

    1. A.Yes — grids need a whole new set of functions
    2. B.No — a grid intersection looks just like the Module 2 cross, so the toolkit works unchanged✓
    3. C.Yes — you must rewrite track_to_intersection()
    4. D.Only the sensor functions change

    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.

  2. Which function drives the robot from where it is to the next intersection?

    1. A.turn_clockwise()
    2. B.track_to_intersection()✓
    3. C.turn_counterclockwise()
    4. D.get_error()

    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.

  3. You run the program and the robot reports 'Intersection reached!' instantly without moving. Why?

    1. A.The battery is dead
    2. B.It started sitting on an intersection, so both sensors were already high✓
    3. C.track_to_intersection() is broken
    4. D.The threshold is too low

    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.