... | ... | @@ -30,7 +30,7 @@ We will first mount the black and white sensor in the LEGO 9797 car. Afterwards |
|
|
|
|
|
| "Color" | Light Sample1| Light Sample2| Light Sample3|
|
|
|
| -------- | ------------ | ------------ | ------------ |
|
|
|
| Black | 39 |t | 38 | 37 |
|
|
|
| Black | 39 | 38 | 37 |
|
|
|
| White | 57 | 59 | 57 |
|
|
|
| Grey | 55 | 56 | 54 |
|
|
|
| Green | 46 | 46 | 47 |
|
... | ... | @@ -130,6 +130,8 @@ Our goal is to make it possible to make a line follower with just one light sens |
|
|
We are going to take inspiration from the pseudo code in: “A PID Controller For Lego Mindstorms Robots”[2].
|
|
|
|
|
|
#### Results
|
|
|
[![image alt text](http://img.youtube.com/vi/Qi-XYG67Eiw/0.jpg)](http://www.youtube.com/watch?v=Qi-XYG67Eiw)
|
|
|
##### Video 3: Line Follower with PID controller.
|
|
|
|
|
|
```
|
|
|
public class PIDCarController {
|
... | ... | |