In the SoundCtrCar.java a state change occurs whenever a sound level is recorded as 90% or above. The duration of the sound is not taken into account thus a constant sound above this limit would also trigger a state change. A sleep functionality has been implemented in order to keep the program from running quickly through every state at high sounds.
In the SoundCtrCar.java a state change occurs whenever a sound level is recorded as 90% or above. The duration of the sound is not taken into account thus a constant sound above this limit will also trigger a state change. A sleep functionality has been implemented in order to keep the program from running quickly through every state at high sounds.
### Exercise 6 - Party Finder Robot
In this exercise we mount two sound sensors on the Lego car and create a java application that will drive towards loud sound.