... | @@ -62,6 +62,12 @@ Use the idea and structure of the BlackWhiteSensor to program a class ThreeColor |
... | @@ -62,6 +62,12 @@ Use the idea and structure of the BlackWhiteSensor to program a class ThreeColor |
|
|
|
|
|
We extended the behaviour of *BlackWhiteSensor.java* to calibrate for green as well as the black and white. The extended application can be seen in <<<<<<indsæt ref til kode, eller indsæt kode>>>>>>.
|
|
We extended the behaviour of *BlackWhiteSensor.java* to calibrate for green as well as the black and white. The extended application can be seen in <<<<<<indsæt ref til kode, eller indsæt kode>>>>>>.
|
|
|
|
|
|
|
|
Having done this, we installed the program on the robot and started classifying black, white and green. The green color was dark green and was thus very close to black for the light sensor.
|
|
|
|
|
|
|
|
**White** | **Black** | **Green**
|
|
|
|
--- | --- | ---
|
|
|
|
51 | 33 | 37
|
|
|
|
|
|
### Line Follower that stops in a Goal Zone ###
|
|
### Line Follower that stops in a Goal Zone ###
|
|
|
|
|
|
#### Description ####
|
|
#### Description ####
|
... | | ... | |