-
Notifications
You must be signed in to change notification settings - Fork 0
/
robot_config.json
80 lines (80 loc) · 1.58 KB
/
robot_config.json
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
{
"Encoder_Left": [22, 25],
"Encoder_Right": [23, 24],
"L298N_PINS": {
"BACKWARD": 5,
"FORWARD": 12
},
"HALL_EFFECT_PIN": 16,
"STOP_SWITCH": 4,
"TIMING_SWITCH": 18,
"P": 0.034,
"I": 0,
"D": 0.034,
"MAINTAIN_SPEED_PID": {
"P": 2.0,
"I": 0.025,
"D": 1.8
},
"LED_CONFIG": {
"red": 6,
"green": 13,
"blue": 26
},
"LED_COLOR_COMBOS": {
"red": {
"red": 100,
"green": 0,
"blue": 0
},
"green": {
"red": 0,
"green": 100,
"blue": 0
},
"blue": {
"red": 0,
"green": 0,
"blue": 100
},
"purple": {
"red": 100,
"green": 0,
"blue": 100
},
"cyan": {
"red": 0,
"green": 100,
"blue": 100
},
"white": {
"red": 100,
"green": 100,
"blue": 100
},
"yellow": {
"red": 100,
"green": 100,
"blue": 0
}
},
"CROPPING": {
"do": true,
"left": 0,
"right": 0,
"top": 0.4
},
"INTERSECTION_TIMINGS": {
"M": 0.0009,
"B": 0.13,
"turning_timing": 0.65
},
"NUM_OF_INTERSECTIONS": 1,
"intersection_turns": ["RIGHT"],
"ONE_BALL_UNLOADING": 1,
"MANY_BALL_UNLOADING": 25,
"GRAYSCALE_THRESHOLD": 70,
"BASE_SPEED": 0.5,
"INTERSECTION_PORTION": 0.5,
"debug": true
}