Skip to main content
Module 2 · Line Tracking

Lesson 2-5 · Proportional Control — Knowledge ChecksAnswer key

Correct answers are marked and the explanation follows each question.

  1. What does `arcade(0.3, -0.15)` do?

    1. A.Drives forward, curving right✓
    2. B.Drives forward, curving left
    3. C.Drives backward
    4. D.Spins in place

    The speed is positive, so it drives forward. The turn is negative, so the left wheel speeds up and the right slows down, and the robot curves right.

  2. Setpoint is 0.5 and the sensor reads 0.2. What is the error?

    1. A.−0.3
    2. B.+0.3✓
    3. C.0.7
    4. D.0.2

    error = 0.5 − 0.2 = +0.3. The positive sign says the robot drifted onto white and should steer toward the line.

  3. If Kp = 0.6 and error = 0.3, what is the correction?

    1. A.0.9
    2. B.0.18✓
    3. C.0.3
    4. D.0.5

    correction = error × Kp = 0.3 × 0.6 = 0.18.

  4. Your robot follows the line but weaves back and forth rapidly, never settling. What should you do to Kp?

    1. A.Increase it — it needs to react harder
    2. B.Decrease it — it is over-correcting✓
    3. C.Set it to 0
    4. D.Leave KP; increase BASE_EFFORT instead

    Rapid weaving is over-correction — Kp is too high. Lower it for gentler, smoother steering.

  5. What is 120 % 50, and would a print inside `if i % 50 == 0:` happen on pass 120?

    1. A.2.4, and yes
    2. B.20, and no — the remainder is not zero, so 120 is not a multiple of 50✓
    3. C.0, and yes
    4. D.70, and no

    50 goes into 120 twice (100) with 20 left over, so 120 % 50 is 20. Only passes whose remainder is 0 — multiples of 50 — print.