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 | #####################################################################
|
---|
19 | # Network addresses
|
---|
20 | #####################################################################
|
---|
21 |
|
---|
22 | BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
|
---|
23 | BRAINSTORMS_SERVER_HOST = '127.0.0.1' # localhost
|
---|
24 | BRAINSTORMS_SERVER_PORT = 8194
|
---|
25 |
|
---|
26 | BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
|
---|
27 | THINKGEAR_SERVER_HOST = '127.0.0.1'
|
---|
28 | THINKGEAR_SERVER_PORT = 13854
|
---|
29 |
|
---|
30 |
|
---|
31 | #####################################################################
|
---|
32 | # LEGO Mindstorms NXT robot configuration
|
---|
33 | #####################################################################
|
---|
34 |
|
---|
35 | DEFAULT_NXT_POWER_LEVEL = 80
|
---|
36 |
|
---|
37 | NXT_MOTORS_MOUNTED_BACKWARDS = True
|
---|
38 | NXT_MOTOR_PORT_LEFT = 'b'
|
---|
39 | NXT_MOTOR_PORT_RIGHT = 'a'
|
---|
40 |
|
---|
41 |
|
---|
42 | #####################################################################
|
---|
43 | # ThinkGear Connect configuration
|
---|
44 | #####################################################################
|
---|
45 |
|
---|
46 | THINKGEAR_AUTHORIZATION_ENABLED = False
|
---|
47 |
|
---|
48 | THINKGEAR_AUTHORIZATION_REQUEST = { "appName": "Puzzlebox Brainstorms", "appKey": "2e285d7bd5565c0ea73e7e265c73f0691d932408" }
|
---|
49 |
|
---|
50 |
|
---|
51 | #####################################################################
|
---|
52 | # ThinkGear Connect Server Emulator configuration
|
---|
53 | #####################################################################
|
---|
54 |
|
---|
55 | THINKGEAR_ENABLE_SIMULATE_HEADSET_DATA = True
|
---|
56 |
|
---|
57 | THINKGEAR_BLINK_FREQUENCY_TIMER = 6 # blink every 6 seconds
|
---|
58 | # (6 seconds is listed by Wikipedia
|
---|
59 | # as being the average number of times
|
---|
60 | # an adult blinks in a laboratory setting)
|
---|
61 |
|
---|
62 | THINKGEAR_DEFAULT_SAMPLE_WAVELENGTH = 30 # number of seconds from 0 to max
|
---|
63 | # and back to 0 for any given
|
---|
64 | # detection value below
|
---|
65 |
|
---|
66 |
|
---|
67 | #####################################################################
|
---|
68 | # Client Interface configuration
|
---|
69 | #####################################################################
|
---|
70 |
|
---|
71 | THINKGEAR_POWER_THRESHOLDS = {}
|
---|
72 |
|
---|
73 | 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 }
|
---|
74 |
|
---|
75 | 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 }
|
---|
76 |
|
---|