source: tags/pyrokinesis-1.0.0/puzzlebox_brainstorms_configuration.ini @ 317

Revision 317, 3.9 KB checked in by sc, 9 months ago (diff)
  • Initial configuration for poofer arc control
Line 
1#####################################################################
2# Puzzlebox Brainstorms Configuration
3#####################################################################
4
5ENABLE_CONTROL_PANEL = True
6
7AUTOCONNECT_TO_NXT_DEVICE = False
8
9NXT_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
16BRAINSTORMS_VARIABLE_CONTROL_DURATION = True
17
18BLINK_DETECTION_ENABLED = True
19BLINK_DETECTION_THRESHOLD = 6 # 6 blinks detected within the valid range
20BLINK_DETECTION_VALID_RANGE = 2 # 2 second scanning range
21
22BLINK_DETECTION_INCLUDE_FORWARD = True
23BLINK_DETECTION_INCLUDE_LEFT = True
24BLINK_DETECTION_INCLUDE_RIGHT = True
25BLINK_DETECTION_INCLUDE_REVERSE = True
26
27#####################################################################
28# Pyrokinessis settings
29#####################################################################
30
31PYROKINESIS_BURN_MODE_ARC = True
32
33
34#####################################################################
35# Network addresses
36#####################################################################
37
38BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
39BRAINSTORMS_SERVER_HOST = '127.0.0.1' # localhost
40BRAINSTORMS_SERVER_PORT = 8194
41
42BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
43THINKGEAR_SERVER_HOST = '127.0.0.1'
44THINKGEAR_SERVER_PORT = 13854
45
46
47#####################################################################
48# LEGO Mindstorms NXT robot configuration
49#####################################################################
50
51DEFAULT_NXT_POWER_LEVEL = 80
52
53NXT_MOTORS_MOUNTED_BACKWARDS = True
54NXT_MOTOR_PORT_LEFT = 'b'
55NXT_MOTOR_PORT_RIGHT = 'a'
56
57
58#####################################################################
59#iRobot Configuration
60#####################################################################
61
62IROBOT_MOVE_DELAY = 1
63IROBOT_TURN_DELAY = 0.5
64
65IROBOT_SERIAL_TIMEOUT = 2
66
67IROBOT_BLUETOOTH_DEVICE = ''
68IROBOT_DEFAULT_RC_COMMAND = 'test_drive'
69
70IROBOT_VELOCITY_MAX = 500  # mm/s
71IROBOT_VELOCITY_SLOW = 15
72IROBOT_VELOCITY_FAST = 350
73IROBOT_TURN_SPEED = 300
74
75
76#####################################################################
77# ThinkGear Connect configuration
78#####################################################################
79
80THINKGEAR_AUTHORIZATION_ENABLED = False
81
82THINKGEAR_AUTHORIZATION_REQUEST = { "appName": "Puzzlebox Brainstorms", "appKey": "2e285d7bd5565c0ea73e7e265c73f0691d932408" }
83
84
85#####################################################################
86# ThinkGear Connect Server Emulator configuration
87#####################################################################
88
89THINKGEAR_ENABLE_SIMULATE_HEADSET_DATA = True
90
91THINKGEAR_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
96THINKGEAR_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
105THINKGEAR_POWER_THRESHOLDS = {}
106
107THINKGEAR_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
109THINKGEAR_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
Note: See TracBrowser for help on using the repository browser.