marvin:ecp5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
marvin:ecp5 [2009/01/29 00:16] – rieper | marvin:ecp5 [2009/01/29 09:23] – deva | ||
---|---|---|---|
Line 15: | Line 15: | ||
* Make a bluetooth client code Behaviour on the Marvin, that can receive numbers and act on them. | * Make a bluetooth client code Behaviour on the Marvin, that can receive numbers and act on them. | ||
* 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===== | =====The protocol===== | ||
Line 27: | Line 26: | ||
On the PC LeJOS has also made a bluetooth interface. This works exactly the same as the one on the NXT, and we therefore simply had to make a connection (listening on the NXT and connecting on the PC) and then creating input/ | On the PC LeJOS has also made a bluetooth interface. This works exactly the same as the one on the NXT, and we therefore simply had to make a connection (listening on the NXT and connecting on the PC) and then creating input/ | ||
- | Lejos has put a lot of effort into making the bluetooth communication easy to use, and the implementation were therefore quite straight forward. Observe the resulting code below. | + | LeJOS has put a lot of effort into making the bluetooth communication easy to use, and the implementation were therefore quite straight forward. Observe the resulting code below. |
- | We experienced a lot of slowdown in the balancing thread whenever the bluetooth communication was running, and we had to disable it entirely at numerous | + | We experienced a lot of slowdown in the balancing thread whenever the bluetooth communication was running, and we had to disable it entirely at numerous |
- | We later discovered that the problem could be worked around by disabling some of the other behavoir | + | We later discovered that the problem could be worked around by disabling some of the other behaviour |
Here is a movie of the resulting remote controlled robot, with all other behaviours disabled:\\ | Here is a movie of the resulting remote controlled robot, with all other behaviours disabled:\\ | ||
[[http:// | [[http:// | ||
{{youtube> | {{youtube> | ||
+ | |||
+ | 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 class===== | =====The BTControl class===== |
marvin/ecp5.txt · Last modified: 2009/01/29 10:58 by rieper