User Tools

Site Tools


marvin:ecp5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
marvin:ecp5 [2009/01/29 09:17] devamarvin:ecp5 [2009/01/29 09:24] 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 37: Line 35:
 {{youtube>CBRJdHbWyV4?small}} {{youtube>CBRJdHbWyV4?small}}
  
-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, but also +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, but also because the tilt reference must be incremented gradually, but still has to reach a certain level before an actual forward or backward motion can be seen. Making this incrementation more rapid (and thereby making the reaction faster) will cause Marvin to nosedive.
  
 =====The BTControl class===== =====The BTControl class=====
 {{ :marvin:bluetooth.png?450 }} {{ :marvin:bluetooth.png?450 }}
-Bluetooth control behavior. 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. 
-It reacts only on the keycodes connectred with the arrow keys (up, down, left, right) and tells Marvin to drive accordingly.+It reacts only on the keycodes connected with the arrow keys (up, down, left, right) and tells Marvin to drive accordingly.
  
 ^ Key   ^ KeyCode ^ Variable          ^ ^ Key   ^ KeyCode ^ Variable          ^
Line 72: Line 70:
         case directionLeft:         case directionLeft:
           left(200);           left(200);
 +
           break;           break;
  
marvin/ecp5.txt · Last modified: 2009/01/29 10:58 by rieper