... | ... | @@ -148,6 +148,10 @@ public class PIDCarController { |
|
|
int derivative = 0;
|
|
|
int error = 0;
|
|
|
int turn;
|
|
|
|
|
|
// Calibrate the black/white threshold
|
|
|
sensor.calibrate();
|
|
|
offset = sensor.blackWhiteThreshold();
|
|
|
|
|
|
LCD.clear();
|
|
|
LCD.drawString("Light: ", 0, 2);
|
... | ... | |