... | ... | @@ -69,10 +69,10 @@ Our goal in this exercise is to test the soundctrcar.java so see how it affects |
|
|
Our plan is to place the car at a table and make different sounds, claps or shouts, to see how we can control the car.
|
|
|
|
|
|
#### Results
|
|
|
##### Test Video:
|
|
|
##### Video1:
|
|
|
[![image alt text](http://img.youtube.com/vi/DY6CrN9-_yI/0.jpg)](http://www.youtube.com/watch?v=DY6CrN9-_yI&feature=youtu.be)
|
|
|
|
|
|
This video shows how robot reacts accordingly to the code implemented.
|
|
|
This video shows how the robot reacts accordingly to the code implemented.
|
|
|
|
|
|
#### Conclusion
|
|
|
The video shows that the robot acts accordingly to the code when making a sound that is above the threshold. The first sound it registres results in forward movement, the second makes it turn left, the third right and lastly the fourth makes it stop. It further shows that sound has to be very close to the sensor for the robot to react.
|
... | ... | @@ -105,7 +105,10 @@ public class SoundCtrCar |
|
|
}
|
|
|
});
|
|
|
```
|
|
|
##### Video2: robot running implemented code.
|
|
|
[![image alt text](http://img.youtube.com/vi/=D74CMzGWZBw/0.jpg)](https://www.youtube.com/watch?v=D74CMzGWZBw&feature=youtu.be)
|
|
|
|
|
|
https://www.youtube.com/watch?v=D74CMzGWZBw&feature=youtu.be
|
|
|
#### Conclusion
|
|
|
As seen in the above code snippet we implemented a ButtonListener that didn't interfere with anything else.
|
|
|
|
... | ... | |