marvin:ecp5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
marvin:ecp5 [2009/01/29 10:09] – deva | marvin:ecp5 [2009/01/29 10:58] (current) – rieper | ||
---|---|---|---|
Line 16: | Line 16: | ||
* Make PC bluetooth application read from keyboard arrows to determine control direction. | * Make PC bluetooth application read from keyboard arrows to determine control direction. | ||
- | =====The protocol===== | + | =====Theory==== |
+ | ====The Protocol==== | ||
{{ : | {{ : | ||
Line 37: | Line 38: | ||
As it can be seen from the video, Marvin is not exactly reacting real-time to the control changes. This is due to the way the BTControl has been implemented, | As it can be seen from the video, Marvin is not exactly reacting real-time to the control changes. This is due to the way the BTControl has been implemented, | ||
- | =====The BTControl | + | =====Implementation===== |
+ | ====The BTControl | ||
{{ : | {{ : | ||
Bluetooth control behaviour. It reads integers from a bluetooth input stream, interpreting them as keycodes. | Bluetooth control behaviour. It reads integers from a bluetooth input stream, interpreting them as keycodes. | ||
Line 96: | Line 98: | ||
</ | </ | ||
- | On the PC, a window (JFrame) | + | ====The PCController Class==== |
+ | On the PC, we use a window (JFrame) | ||
<code java> | <code java> | ||
NXTComm nxtComm = NXTCommFactory.createNXTComm(NXTCommFactory.BLUETOOTH); | NXTComm nxtComm = NXTCommFactory.createNXTComm(NXTCommFactory.BLUETOOTH); |
marvin/ecp5.1233220145.txt.gz · Last modified: 2009/01/29 10:09 by deva