... | @@ -82,7 +82,7 @@ The video shows that the robot acts accordingly to the code when making a sound |
... | @@ -82,7 +82,7 @@ The video shows that the robot acts accordingly to the code when making a sound |
|
The goal is to implement a ButtonListener for the ESCAPE button, so you can exit the program.
|
|
The goal is to implement a ButtonListener for the ESCAPE button, so you can exit the program.
|
|
|
|
|
|
#### Plan
|
|
#### Plan
|
|
We are planning to do this by looking at the leJos tutorial on how to use a ButtonListener.
|
|
We are planning to do this by looking at the leJos tutorial[1] on how to use a ButtonListener.
|
|
|
|
|
|
#### Results
|
|
#### Results
|
|
```
|
|
```
|
... | @@ -117,8 +117,10 @@ As seen in the above code snippet we implemented a ButtonListener that didn't in |
... | @@ -117,8 +117,10 @@ As seen in the above code snippet we implemented a ButtonListener that didn't in |
|
### Exercise 5 - Clap Controlled Car
|
|
### Exercise 5 - Clap Controlled Car
|
|
|
|
|
|
#### Goal
|
|
#### Goal
|
|
|
|
Our goal is to make a method, using Sivan Toledos method[1], that detects clap, and compare this method to the SoundCtrCar.java.
|
|
|
|
|
|
#### Plan
|
|
#### Plan
|
|
|
|
We plan on writing the necessary code and use a Datalogger to record the data and afterwards conclude on the pattern.
|
|
|
|
|
|
#### Results
|
|
#### Results
|
|
|
|
|
... | @@ -140,3 +142,5 @@ As seen in the above code snippet we implemented a ButtonListener that didn't in |
... | @@ -140,3 +142,5 @@ As seen in the above code snippet we implemented a ButtonListener that didn't in |
|
|
|
|
|
|
|
|
|
### References
|
|
### References
|
|
|
|
1. leJos tutorial, [Threads, Listeners and Events.](http://lejos.sourceforge.net/nxt/nxj/tutorial/ListenersAndEvents/Listeners_Events.htm)
|
|
|
|
2. |