source: remote_control/puzzlebox_brainstorms_configuration.ini @ 108

Last change on this file since 108 was 108, checked in by sc, 11 years ago

remote_control/puzzlebox_brainstorms_network_client.py:

  • voltage display fix

remote_control/puzzlebox_brainstorms_configuration:

  • system based defaults for NXT Bluetooth device

remote_control/puzzlebox_brainstorms_client_interface.py:

  • user define NXT Bluetooth device support added

remote_control/puzzlebox_brainstorms_network_server.py:

  • user define NXT Bluetooth device support fixed
File size: 2.9 KB
Line 
1#####################################################################
2# Puzzlebox Brainstorms Configuration
3#####################################################################
4
5NXT_BLUETOOTH_DEVICE = ''
6# NXT_BLUETOOTH_DEVICE = 'COM1' # Windows example setting
7# NXT_BLUETOOTH_DEVICE = '/dev/rfcomm0' # Linux example setting
8
9# Discrete control drives the robot for a set time period per detection.
10# Setting Variable control to "True" will drive the robot in a
11# particular direction for as long as the detection occurs
12BRAINSTORMS_VARIABLE_CONTROL_DURATION = True
13
14#####################################################################
15# Network addresses
16#####################################################################
17
18BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
19BRAINSTORMS_SERVER_HOST = '127.0.0.1' # localhost
20BRAINSTORMS_SERVER_PORT = 8194
21
22BRAINSTORMS_SERVER_INTERFACE = '' # listen on all network interfaces
23THINKGEAR_SERVER_HOST = '127.0.0.1'
24THINKGEAR_SERVER_PORT = 13854
25
26
27#####################################################################
28# LEGO Mindstorms NXT robot configuration
29#####################################################################
30
31DEFAULT_NXT_POWER_LEVEL = 80
32
33NXT_MOTORS_MOUNTED_BACKWARDS = True
34NXT_MOTOR_PORT_RIGHT = 'a'
35NXT_MOTOR_PORT_LEFT = 'b'
36
37
38#####################################################################
39# ThinkGear Connect configuration
40#####################################################################
41
42THINKGEAR_AUTHORIZATION_ENABLED = False
43
44THINKGEAR_AUTHORIZATION_REQUEST = { "appName": "Puzzlebox Brainstorms", "appKey": "2e285d7bd5565c0ea73e7e265c73f0691d932408" }
45
46
47#####################################################################
48# ThinkGear Connect Server Emulator configuration
49#####################################################################
50
51THINKGEAR_ENABLE_SIMULATE_HEADSET_DATA = True
52
53THINKGEAR_BLINK_FREQUENCY_TIMER = 6 # blink every 6 seconds
54                                    # (6 seconds is listed by Wikipedia
55                                    # as being the average number of times
56                                    # an adult blinks in a laboratory setting)
57
58THINKGEAR_DEFAULT_SAMPLE_WAVELENGTH = 30 # number of seconds from 0 to max
59                                         # and back to 0 for any given
60                                         # detection value below
61
62
63#####################################################################
64# Client Interface configuration
65#####################################################################
66
67THINKGEAR_POWER_THRESHOLDS = {}
68
69THINKGEAR_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 }
70
71THINKGEAR_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 }
72
Note: See TracBrowser for help on using the repository browser.