... | ... | @@ -52,6 +52,14 @@ After being thoroughly confused by draw int for a while (THANK YOU NXT!?!!11), w |
|
|
|
|
|
We wrote a program **SoundHater.java**, to create the inhibitory connection. The program is exactly the same as **SoundLover.java**, except we don't invert the given read value. The result is as seen in [Video sound hater]. The robot accurately stops when hearing loud noises, and drives forward when hearing nothing.
|
|
|
|
|
|
We made a program **TinyDancer.java**, where we initially made the robot turn left if read sound level was over 50, and turn right if under 50. The robot kept constantly turning left, as the sound level caused by itself was too high. Result can be seen in [Video spin-to-win]
|
|
|
|
|
|
[Insert spin me right round baby right round]
|
|
|
|
|
|
We then tried with increasing the values of the threshold for turning left or right, to 80, then 90 and lastly settled on a magic number 93 before we were satisfied with the left-to-right ratio. We lastly realized that the robot wasn't dancing, it was just driving forward with either the left or right motor. So we made the made the motor that wasn't currently driving forward drive backwards with the same amount of power, so the robot would stand in spot and 'dance', instead of driving around. Result can be seen in [insert fabulous video of Frej showin' some mooves]
|
|
|
|
|
|
[Insert DANCING QUEEEEN]
|
|
|
|
|
|
### Vehicle 2
|
|
|
|
|
|
|
... | ... | |