... | ... | @@ -83,7 +83,7 @@ Second: We implement the methods for the motors. |
|
|
As seen in the video the car detects both the black line, and the white and green zones - in which it stops perfectly. The car has some problems when going from the ramp and down the hill.
|
|
|
|
|
|
The below codesnippet is the implemented code, the thresholds for the colors are calibrated each time the program starts, furthermore they are allowed to differ +-2 in relation to the detected value.
|
|
|
-
|
|
|
|
|
|
|
|
|
```
|
|
|
public class carLineFollower1 {
|
... | ... | |