u4099 created page: Lesson4Week6 authored by Daniel Jung Moltzen's avatar Daniel Jung Moltzen
......@@ -149,6 +149,10 @@ public class PIDCarController {
int error = 0;
int turn;
// Calibrate the black/white threshold
sensor.calibrate();
offset = sensor.blackWhiteThreshold();
LCD.clear();
LCD.drawString("Light: ", 0, 2);
LCD.drawString("Error: ", 0, 3);
......
......