| 1 | #####################################################################
|
|---|
| 2 | # Puzzlebox Brainstorms Configuration
|
|---|
| 3 | #####################################################################
|
|---|
| 4 |
|
|---|
| 5 | ENABLE_CONTROL_PANEL = True
|
|---|
| 6 |
|
|---|
| 7 | AUTOCONNECT_TO_NXT_DEVICE = False
|
|---|
| 8 |
|
|---|
| 9 | NXT_BLUETOOTH_DEVICE = ''
|
|---|
| 10 | # NXT_BLUETOOTH_DEVICE = 'COM1' # Windows example setting
|
|---|
| 11 | # NXT_BLUETOOTH_DEVICE = '/dev/rfcomm0' # Linux example setting
|
|---|
| 12 |
|
|---|
| 13 | # Discrete control drives the robot for a set time period per detection.
|
|---|
| 14 | # Setting Variable control to "True" will drive the robot in a
|
|---|
| 15 | # particular direction for as long as the detection occurs
|
|---|
| 16 | BRAINSTORMS_VARIABLE_CONTROL_DURATION = True
|
|---|
| 17 |
|
|---|
| 18 | BLINK_DETECTION_ENABLED = True
|
|---|
| 19 | BLINK_DETECTION_THRESHOLD = 6 # 6 blinks detected within the valid range
|
|---|
| 20 | BLINK_DETECTION_VALID_RANGE = 2 # 2 second scanning range
|
|---|
| 21 |
|
|---|
| 22 | BLINK_DETECTION_INCLUDE_FORWARD = True
|
|---|
| 23 | BLINK_DETECTION_INCLUDE_LEFT = True
|
|---|
| 24 | BLINK_DETECTION_INCLUDE_RIGHT = True
|
|---|
| 25 | BLINK_DETECTION_INCLUDE_REVERSE = True
|
|---|
| 26 |
|
|---|
| 27 | #####################################################################
|
|---|
| 28 | # Pyrokinessis settings
|
|---|
| 29 | #####################################################################
|
|---|
| 30 |
|
|---|
| 31 | PYROKINESIS_BURN_MODE_ARC = True
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | #####################################################################
|
|---|
| 35 | # Network addresses
|
|---|
| 36 | #####################################################################
|
|---|
| 37 |
|
|---|
| 38 | BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
|
|---|
| 39 | BRAINSTORMS_SERVER_HOST = '127.0.0.1' # localhost
|
|---|
| 40 | BRAINSTORMS_SERVER_PORT = 8194
|
|---|
| 41 |
|
|---|
| 42 | BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
|
|---|
| 43 | THINKGEAR_SERVER_HOST = '127.0.0.1'
|
|---|
| 44 | THINKGEAR_SERVER_PORT = 13854
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | #####################################################################
|
|---|
| 48 | # LEGO Mindstorms NXT robot configuration
|
|---|
| 49 | #####################################################################
|
|---|
| 50 |
|
|---|
| 51 | DEFAULT_NXT_POWER_LEVEL = 80
|
|---|
| 52 |
|
|---|
| 53 | NXT_MOTORS_MOUNTED_BACKWARDS = True
|
|---|
| 54 | NXT_MOTOR_PORT_LEFT = 'b'
|
|---|
| 55 | NXT_MOTOR_PORT_RIGHT = 'a'
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | #####################################################################
|
|---|
| 59 | #iRobot Configuration
|
|---|
| 60 | #####################################################################
|
|---|
| 61 |
|
|---|
| 62 | IROBOT_MOVE_DELAY = 1
|
|---|
| 63 | IROBOT_TURN_DELAY = 0.5
|
|---|
| 64 |
|
|---|
| 65 | IROBOT_SERIAL_TIMEOUT = 2
|
|---|
| 66 |
|
|---|
| 67 | IROBOT_BLUETOOTH_DEVICE = ''
|
|---|
| 68 | IROBOT_DEFAULT_RC_COMMAND = 'test_drive'
|
|---|
| 69 |
|
|---|
| 70 | IROBOT_VELOCITY_MAX = 500 # mm/s
|
|---|
| 71 | IROBOT_VELOCITY_SLOW = 15
|
|---|
| 72 | IROBOT_VELOCITY_FAST = 350
|
|---|
| 73 | IROBOT_TURN_SPEED = 300
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | #####################################################################
|
|---|
| 77 | # ThinkGear Connect configuration
|
|---|
| 78 | #####################################################################
|
|---|
| 79 |
|
|---|
| 80 | THINKGEAR_AUTHORIZATION_ENABLED = False
|
|---|
| 81 |
|
|---|
| 82 | THINKGEAR_AUTHORIZATION_REQUEST = { "appName": "Puzzlebox Brainstorms", "appKey": "2e285d7bd5565c0ea73e7e265c73f0691d932408" }
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 | #####################################################################
|
|---|
| 86 | # ThinkGear Connect Server Emulator configuration
|
|---|
| 87 | #####################################################################
|
|---|
| 88 |
|
|---|
| 89 | THINKGEAR_ENABLE_SIMULATE_HEADSET_DATA = True
|
|---|
| 90 |
|
|---|
| 91 | THINKGEAR_BLINK_FREQUENCY_TIMER = 6 # blink every 6 seconds
|
|---|
| 92 | # (6 seconds is listed by Wikipedia
|
|---|
| 93 | # as being the average number of times
|
|---|
| 94 | # an adult blinks in a laboratory setting)
|
|---|
| 95 |
|
|---|
| 96 | THINKGEAR_DEFAULT_SAMPLE_WAVELENGTH = 30 # number of seconds from 0 to max
|
|---|
| 97 | # and back to 0 for any given
|
|---|
| 98 | # detection value below
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | #####################################################################
|
|---|
| 102 | # Client Interface configuration
|
|---|
| 103 | #####################################################################
|
|---|
| 104 |
|
|---|
| 105 | THINKGEAR_POWER_THRESHOLDS = {}
|
|---|
| 106 |
|
|---|
| 107 | THINKGEAR_POWER_THRESHOLDS['concentration'] = { 0: 0, 10: 0, 20: 0, 30: 0, 40: 60, 50: 65, 60: 70, 70: 75, 75: 80, 80: 85, 90: 90, 100: 90 }
|
|---|
| 108 |
|
|---|
| 109 | THINKGEAR_POWER_THRESHOLDS['relaxation'] = { 0: 0, 10: 0, 20: 0, 30: 0, 40: 0, 50: 10, 60: 10, 70: 15, 80: 15, 90: 20, 100: 20 }
|
|---|
| 110 |
|
|---|