... | ... | @@ -71,8 +71,7 @@ The first problem seen in the video with the PIDcontroller happens on the first |
|
|
|
|
|
This sets the counter to one (since this is the first measurement where the criteria for the black threshold is fulfilled by both sensors ). Subsequently, it executes the following code:
|
|
|
|
|
|
´´´
|
|
|
|
|
|
´´´´
|
|
|
switch (counter){
|
|
|
|
|
|
case 1:
|
... | ... | @@ -87,6 +86,6 @@ switch (counter){ |
|
|
powerLeft = 65;
|
|
|
powerRight = 80;
|
|
|
break;
|
|
|
´´´
|
|
|
´´´´
|
|
|
##### Codesnippet 1 [4]
|
|
|
|