Module 2 · Line Tracking
Lesson 6 · Two-Sensor Line Following — Knowledge ChecksAnswer key
The left sensor reads 0.8 and the right reads 0.2. What is the error, and which way has the robot drifted?
error = 0.8 − 0.2 = +0.6. A positive error means the left sensor is on the line, so the robot drifted left.
Why is the correction negated in arcade(base_effort, -correction) here, when Lesson 5 didn't negate it?
With two sensors, a positive error means 'drifted left → steer left', which is a negative turn in arcade — so we negate the correction.
Both sensors suddenly read high (0.9 and 0.9), so error ≈ 0 and the robot drives straight. What has it most likely reached?
Both sensors on black at once usually means a crossing line. The two-sensor follower can't tell that apart from 'centered' — which is exactly the problem Lesson 7 solves.