... | ... | @@ -32,7 +32,10 @@ Figure 2 shows a diagram, representing the robot's overall behaviour when runnin |
|
|
The program worked quite well. It avoided small obstacles put in it's vision, and even when it reached a corner, it seemed like it tried to find a way around the obstacle by looking 'increasingly much' to either side. When we looked into the code of the program, we saw that this was partially correct, since it did exactly that, but only with increasingly looking more to the left. TODO video of avoid program + description - EMIL
|
|
|
|
|
|
#### Changing the program
|
|
|
We tried changing the program by making the robot drive backwards a little when encountering an obstacle and then spin around 180 degrees (by making one motor drive forward and the other driving backwards). Initially we made it spin for 1 second (1000ms), which wasn't enough, but when we changed it to 2 seconds (2000ms) it spun approximately 180 degrees. TODO video of improved avoid program + description - EMIL
|
|
|
We tried changing the program by making the robot drive backwards a little when encountering an obstacle and then spin around 180 degrees (by making one motor drive forward and the other driving backwards). Initially we made it spin for 1 second (1000ms), which wasn't enough, but when we changed it to 2 seconds (2000ms) it spun approximately 180 degrees. TODO: video description
|
|
|
|
|
|
[![TODO: video of improved avoid program]()]()
|
|
|
*Video 1: TODO*
|
|
|
|
|
|
### Behavior from figure 9.9
|
|
|
The car stopped and looked around every time it was bothered by either an obstacle or light. It was hard to distinguish whether it reacted due to light or an obstacle. TODO video of avoid program + description - EMIL
|
... | ... | |