forked from XilefTech/CharlieOSX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.cfg
120 lines (98 loc) · 3.53 KB
/
config.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#----------------------------------------------------------------------------------
#
# Config file for
#
#
# CharlieOSX
#
# the OS with more control of your Robot
#
#----------------------------------------------------------------------------------
# Here you should configure CharlieOSX, so that it knows, what kind of robot to work with
# Motors and Sensors just require the Letter or number of the port, they're at
# Each motor has a Inverted variable that you can use, if you mounted a motor 'backwards'
# It can be set if you built your robot so that the motors are inversed.
# Every motor has got a '[...]Gears variable. There you can put the amount and type of gearings (if you have some)
# With this, CharlieOSX will calculate the ratios so that you just have to say, how many turns you want at the end of your gear chain.
# Syntax: (the numbers are the amount of teeth) One gear chain: [10, 32, 15] Multiple Gear chains stacked: [[10, 32, 15], [15, 64, 10]]
localIP: 192.168.178.52
# Robot wheels
# values in cm
# used for Calculating driving parameters
wheelDistance: 9.5
wheelDiameter: 8.8
# touchSensor in the back of the Robot
backTouchSensor: 0
# bottom viewing light sensors in the front
# used for detection of lines on the floor to follow or to stop at
leftLightSensorPort: 0
rightLightSensorPort: 0
# gyro sensor
# used for accurate driving
gyroSensorPort: 4
gyroInverted: True
# Robot type:
# NORMAL = 2 powered normal wheels
# ALLWHEEL = 4 powered normal wheels
# MECANUM = 4 powered mecanum wheels
robotType: NORMAL
# driving motors
# only use this for a NORMAL robot type, else 0
rightMotorPort: B
rightMotorInverted: False
rightMotorGears: []
leftMotorPort: D
leftMotorInverted: True
leftMotorGears: []
### gearing
# use this, if your robot has got a 4-Way hardware-gearing, else False
useGearing: False
# optional: if you got a light sensor that can be used to 'home' the gearing by sensing RED when the gearing is on port 0
gearingHomeLightSensorPort: 0
# gearing motor for selecting the port
gearingSelectMotorPort: 0
gearingSelectMotorInverted: False
gearingSelectMotorGears: []
# gearing motor for turning the port
gearingTurnMotorPort: 0
gearingTurnMotorInverted: False
gearingTurnMotorGears: []
### action motors:
# if you got Motors for something other than driving
firstActionMotorPort: C
firstActionMotorInverted: False
firstActionMotorGears: []
secondActionMotorPort: 0
secondActionMotorInverted: False
secondActionMotorGears: []
### driving motors
# only use this for a ALLWHEEL and MECANUM robot type, else every motor 0
frontRightMotorPort: 0
frontRightMotorInverted: False
frontRightMotorGears: []
frontLeftMotorPort: 0
frontLeftMotorInverted: False
frontLeftMotorGears: []
backRightMotorPort: 0
backRightMotorInverted: True
backRightMotorGears: []
backLeftMotorPort: 0
backLeftMotorInverted: True
backLeftMotorGears: []
### FLL:
# Activates different saving slots for programs according to the names given in runNames
# Also activates an option for the competition to run all the programs after each other in the same order as in runNames
FLLMode: True
profileFolderName: profiles
# names of the different runs that you want to complete at FLL
# currently limited to a maximum of 8
# please note that names over x characters will appear shortened on the screen -> TODO: insert max characters number when known
profileNames: {
- Rutsche
- Laufband
- Schrittzaehler
- Kranweg
}
### Experimental options
ignoreBatteryWarning: False
checkForUpdates: True