Added links to chapters

This commit is contained in:
Tanja Sukal 2023-09-19 10:32:59 +00:00
parent 58535fb1b8
commit ca6e125269

View File

@ -30,7 +30,7 @@ The first program uses the two color sensors to detect the color of the line.
In the given code, the color is defined as black. `black: line_color = 1`
If you use a different line-color, you may have to change the specification.
Sometimes the color the sensor detects is not identical with what we see with our eyes. (e.g.: color of gray desk is detected as yellow)
To make sure you have the right input, you can use the program [Read sensor values](LINK: Chapter Read_sensor_values).
To make sure you have the right input, you can use the program [Read sensor values](#read-sensor-values).
#### Description of the code
The robot drives forward as long as the color sensors do not detect the line (color).
@ -54,7 +54,7 @@ As the color-sensor gets closer to the line, the reflection of the floor changes
So this means the sensor "detects" the line before it is completely over it.
To use this program, you need to know the maximal reflection-intensity of light of the floor and the minimal reflection-intensity of the line.
To get this values, you can use the [Read sensor values](LINK: Chapter Read_sensor_values) program.
To get this values, you can use the [Read sensor values](#read-sensor-values) program.
If you have the values, you can include them into the program:
```