... | @@ -32,10 +32,13 @@ At time = 28 a high peak is detected. This was caused by a nearby group making a |
... | @@ -32,10 +32,13 @@ At time = 28 a high peak is detected. This was caused by a nearby group making a |
|
|
|
|
|
|
|
|
|
### Exercise 3
|
|
### Exercise 3
|
|
The SoundCtrCar.java program have four states. Whenever a loud sound is recorded, the state will be change.
|
|
The SoundCtrCar.java program has four states. Whenever a loud sound is recorded, the state changes.
|
|
As it is shown in the video below, the four states are driving forward, turning right, turning left and stopping.
|
|
As it is shown in the video below, the four states are driving forward, turning right, turning left and stopping in that order.
|
|
|
|
|
|
TBD: Add video.
|
|
[![Controlling the car with claps](http://img.youtube.com/vi/4ZlUZsZn74Y/0.jpg)](http://www.youtube.com/watch?v=4ZlUZsZn74Y)
|
|
|
|
|
|
|
|
We noticed whilst doing the exercise that it was important to clap right in front of the sensor.
|
|
|
|
As the clap is recognized as a loud sound, if we didn't clap close enough, the sound would be to weak and not recognized as a clap.
|
|
|
|
|
|
### Exercise 4
|
|
### Exercise 4
|
|
TBD: Add codesnippet of ButtonListener implementation
|
|
TBD: Add codesnippet of ButtonListener implementation
|
... | | ... | |