Skip to main content
Module 2 · Line Tracking

Lesson 2-6 · Two-Sensor Line Following — Knowledge ChecksAnswer key

Correct answers are marked and the explanation follows each question.

  1. The left sensor reads 0.8 and the right reads 0.2. What is the error, and which way has the robot drifted?

    1. A.error +0.6, drifted right✓
    2. B.error +0.6, drifted left
    3. C.error 0.0, centered
    4. D.error 1.0, at an intersection

    error = 0.8 − 0.2 = +0.6. The high reading is on the LEFT, so the line is off to the robot's left — meaning the robot itself has drifted right of the line. It needs to steer left to get back.

  2. Why does the minus sign from Lesson 2-5 come out of arcade() here?

    1. A.The meaning of a positive error flipped, so the steer direction has to flip too✓
    2. B.Two sensors never need a sign change
    3. C.It makes the robot go faster
    4. D.It fixes a bug in arcade()

    In Lesson 2-5 a positive error meant 'drifted onto white, steer right', a negative turn, so the correction was negated. With two sensors a positive error means 'drifted right, steer left', which is already a positive turn in arcade(), so the minus comes out.