Changeset 98791c8 in robotics for wheelchair/python/DoraRecieve.py


Ignore:
Timestamp:
08/11/13 18:15:19 (8 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master
Children:
19c8d3e
Parents:
24bf8e2
Message:

Wheelchair_Control:

  • added deviceKeepalive callback timer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wheelchair/python/DoraRecieve.py

    r24bf8e2 r98791c8  
    3232previousTarget= 'i' 
    3333 
     34#DIRECTION_CODES = { 
     35        #'0': '', \ 
     36        #'1': 'left', \ 
     37        #'2': 'right', \ 
     38        #'3': 'reverse', \ 
     39        #'4': 'forward', \ 
     40        #'5': 'stop' 
     41#} 
     42 
     43# '\n' is equivalent to C++ endl 
    3444DIRECTION_CODES = { 
    3545        '0': '', \ 
     
    3848        '3': 'reverse', \ 
    3949        '4': 'forward', \ 
    40         '5': 'stop' 
     50        '5': 'stop', 
     51        '0\n': '', \ 
     52        '1\n': 'left', \ 
     53        '2\n': 'right', \ 
     54        '3\n': 'reverse', \ 
     55        '4\n': 'forward', \ 
     56        '5\n': 'stop' 
    4157} 
    4258 
Note: See TracChangeset for help on using the changeset viewer.