Changeset 258


Ignore:
Timestamp:
12/11/10 13:34:50 (10 years ago)
Author:
sc
Message:

trunk/synapse/puzzlebox_synapse.desktop:

  • Updated for Python 2.7 site-packages path

trunk/brainstorms/Puzzlebox/Brainstorms/Helicopter_Control.py:

  • being dissection of protocol specification

trunk/brainstorms/Puzzlebox/Brainstorms/Interface.py:

  • device access crash bug added to todo list
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/brainstorms/Puzzlebox/Brainstorms/Helicopter_Control.py

    r240 r258  
    1010 
    1111__changelog__ = """ 
    12 Last Update: 2010.11.22 
     12Last Update: 2010.12.11 
    1313 
    1414""" 
     
    6262DEVICE_BUFFER_TIMER = 21  # Frame cycle 22ms 
    6363 
     64# Protocol Specification 
     65# 
     66#       000000a605ff0a060dff135414aa 
     67#       AaAaBbbbCcccDdddEeee______Ff 
     68#        
     69#       Aa - Frame sync bytes 
     70#       Bbbb - Throttle bytes (4 decimal values per trim step) 
     71#       Cccc - Aileron bytes (3 or 4 decimal values per trim step) 
     72#       Dddd - Elevator bytes (3 or 4 decimal values per trim step) 
     73#       Eeee - Rudder bytes (2 decimal values per trim step) 
     74#       Ff - End of Frame byte 
     75#       ____ - Unused/Unknown 
     76# 
     77# 
     78#       Example throttle bytes 
     79# 
     80#0354 : +20 highest throttle stick setting and trim [852] 
     81# 
     82#00fa:  +20 [250] 
     83#00f6:  +19 
     84#00f2:  +18 
     85#00ee:  +17 
     86#00ea:  +16 
     87#00e6:  +15 
     88#00e2:  +14 
     89#00de:  +13 
     90#00da:  +12 
     91#00d6:  +11 
     92#00d2:  +10 
     93#00ce:  +9 
     94#00ca:  +8 
     95#00c6:  +7 
     96#00c2:  +6 
     97#00be:  +5 
     98#00ba:  +4 
     99#00b6:  +3 
     100#00b2:  +2 [178] 
     101#00ae:  +1 [174] 
     102#00aa:  lowest throttle stick setting [170] 
     103#00a6:  -1 [166] 
     104#00a2:  -2 
     105#009e:  -3 
     106#009a:  -4 
     107#0096:  -5 
     108#0092:  -6 
     109#008e:  -7 
     110#008a:  -8 
     111#0086:  -9 
     112#0082:  -10 
     113#007e:  -11 
     114#007a:  -12 
     115#0076:  -13 
     116#0072:  -14 
     117#006e:  -15 
     118#006a:  -16 
     119#0066:  -17 
     120#0062:  -18 
     121#005e:  -19 
     122#005a:  -20 [90] 
     123 
     124 
     125 
    64126COMMAND_PACKET = { 
    65         'neutral':        '\x00\x00\x00\xfa\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # default neutral setting to use for all commands 
    66         'no_thrust':      '\x00\x00\x00\x5a\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # lowest trim setting for throttle 
    67         'minimum_thrust': '\x00\x00\x00\xca\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # lowest trim level at which throttle kicks in 
     127        'default_neutral':      '\x00\x00\x00\xaa\x05\xff\x09\xff\x0d\xff\x13\x54\x14\xaa',  # default neutral setting to use for all commands 
     128        'default_full_thrust':  '\x00\x00\x03\x54\x05\xff\x09\xff\x0d\xff\x13\x54\x14\xaa',  # new controll set to highest throttle (no changes to trim) 
     129        #'neutral':             '\x00\x00\x00\xfa\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # 0.4.5 neutral setting to use for all commands 
     130        'neutral':              '\x00\x00\x00\xae\x05\xff\x09\xff\x0d\xff\x13\x54\x14\xaa',  # default neutral setting to use for all commands 
     131        'no_thrust':            '\x00\x00\x00\x5a\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # lowest trim setting for throttle 
     132        'minimum_thrust':       '\x00\x00\x00\xca\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # lowest trim level at which throttle kicks in 
    68133        'minimum_thrust_minus_one': '\x00\x00\x00\xc6\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # lowest trim level at which throttle kicks in 
    69         'maximum_thrust': '\x00\x00\x03\x54\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # maximum possible throttle and trim 
     134        'maximum_thrust':       '\x00\x00\x03\x54\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa',  # maximum possible throttle and trim 
    70135        'fifty_percent_thrust': '\x00\x00\x01\x7d\x05\xc5\x09\xde\x0e\x0b\x13\x54\x14\xaa', # calculated 50% throttle 
    71         'test_packet':    '\x00\x00\x03\x54\x06\x15\x09\xca\x0e\x2f\x13\x54\x14\xaa', # test packet from saleae logic screenshot 
    72         'maximum_forward': '\x00\x00\x00\x5a\x05\xc5\x0b\x54\x0e\x0b\x13\x54\x14\xaa', # maximum possible elevator and trim 
    73             'fly_forward': '\x00\x00\x01\x7d\x05\xc5\x0a\xde\x0e\x0b\x13\x54\x14\xaa', \ 
     136        'test_packet':          '\x00\x00\x03\x54\x06\x15\x09\xca\x0e\x2f\x13\x54\x14\xaa', # test packet from saleae logic screenshot 
     137        'maximum_forward':      '\x00\x00\x00\x5a\x05\xc5\x0b\x54\x0e\x0b\x13\x54\x14\xaa', # maximum possible elevator and trim 
     138            #'fly_forward':      '\x00\x00\x01\x7d\x05\xc5\x0a\xde\x0e\x0b\x13\x54\x14\xaa', # 0.4.5 fly_forward settings  
     139            'fly_forward':      '\x00\x00\x01\x7d\x05\xc5\x0a\xde\x0e\x0b\x13\x54\x14\xaa',  
    74140} 
    75141 
  • trunk/brainstorms/Puzzlebox/Brainstorms/Interface.py

    r248 r258  
    1515 
    1616__todo__ = """ 
     17 - ERROR: could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0' /dev/ttyUSB0 
    1718 - server may not correctly handle multiple clients connected 
    1819      to an embedded Brainstorms server 
  • trunk/synapse/puzzlebox_synapse.desktop

    r178 r258  
    33GenericName=EEG Brain Interface 
    44Comment=Connect to EEG Headsets 
    5 Exec=/usr/bin/env python /usr/lib/python2.6/site-packages/synapse-gui.py 
     5Exec=/usr/bin/env python /usr/lib/python2.7/site-packages/synapse-gui.py 
    66Icon=/usr/share/puzzlebox_synapse/images/puzzlebox.ico 
    77MimeType=application/x-puzzlebox; 
Note: See TracChangeset for help on using the changeset viewer.