-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
170 lines (170 loc) · 3.1 KB
/
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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"motor": {
"kp": {
"value": 0.35,
"temp_value": 0.35,
"power": 0,
"name": "巡线电机 Kp",
"options": {
"type": "range_science",
"min": 0,
"max": 1,
"power_min": -8,
"power_max": 2
}
},
"ki": {
"value": 0,
"temp_value": 0,
"power": 0,
"name": "巡线电机 Ki",
"options": {
"type": "range_science",
"min": 0,
"max": 1,
"power_min": -8,
"power_max": 2
}
},
"kd": {
"value": 0,
"temp_value": 0,
"power": 0,
"name": "巡线电机 Kd",
"options": {
"type": "range_science",
"min": 0,
"max": 1,
"power_min": -8,
"power_max": 2
}
}
},
"logger": {
"level": {
"value": "DEBUG",
"name": "日志级别",
"options": {
"type": "enum",
"values": [
"DEBUG",
"INFO",
"WARN",
"ERROR"
]
}
}
},
"camera": {
"thresh": {
"value": 81,
"name": "摄像头二值化阈值",
"options": {
"type": "range",
"min": 0,
"max": 255,
"step": 1,
"interactive": {
"cmd": "set_camera_threshold",
"key": "threshold"
}
}
},
"address": {
"value": 0,
"name": "摄像头地址",
"options": {
"type": "enum",
"values": [
"/dev/video0",
"/dev/video1",
0,
1
]
}
},
"fps": {
"value": 60,
"name": "摄像头帧率",
"options": {
"type": "range",
"min": 0.1,
"max": 120,
"step": 5
}
}
},
"serial": {
"port": {
"value": "COM5",
"name": "首要串口地址",
"options": {
"type": "enum",
"values": [
"/dev/ttyUSB0",
"/dev/ttyUSB1",
"/dev/ttyUSB2",
"/dev/ttyUSB3",
"/dev/ttyUSB4",
"COM1",
"COM2",
"COM3",
"COM4",
"COM5",
"COM6",
"COM7",
"COM8",
"COM9",
"COM10"
]
}
},
"baud_rate": {
"value": 115200,
"name": "首要串口波特率",
"options": {
"type": "enum",
"values": [
9600,
14400,
19200,
38400,
57600,
115200,
128000,
256000
]
}
}
},
"task_1": {
"base_speed": {
"value": 15,
"name": "任务1 基础速度",
"options": {
"type": "range",
"min": 0,
"max": 50
}
},
"max_speed_delta": {
"value": 8,
"name": "任务1 最大速度差",
"options": {
"type": "range",
"min": 0,
"max": 50
}
}
},
"config_info": {
"last_update": {
"name": "BROS Config Last Update Time",
"value": "2024-07-23T17:07:16.113Z"
},
"interactive": {
"name": "Interactive Mode Url",
"value": "ws://localhost:10502/ws"
}
}
}