-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
335 lines (335 loc) · 13.3 KB
/
config.json
File metadata and controls
335 lines (335 loc) · 13.3 KB
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
{
"global_info": {
"name": {
"label": "Device Name",
"description": "a user-settable string for assigning the name of the Cato device",
"note": "Name defaults to 'Cato_<HW_UID>' at boot, but is not set if name is defined here",
"access": "rw",
"value": ""
},
"HW_UID": {
"label": "Hardware Unique Identity",
"description": "Unique hex code for identifying different devices",
"access": "r",
"value": ""
},
"sleep": {
"label": "Sleep",
"description": "Controls for Entering Sleep",
"access": "rw",
"value": {
"timeout": {
"label": "Timeout",
"description": "Number of consecutive low-movement seconds before Cato sleeps",
"access": "rw",
"value": 600,
"range": {
"min": 10,
"max": 1200
}
},
"threshold": {
"label": "Sleep Threshold",
"description": "Movement level below which Cato starts counting towards sleep",
"access": "rw",
"value": 5.0,
"range": {
"min": 2.0,
"max": 10.0
}
}
}
},
"orientation": {
"label": "Orientation",
"description": "parameters describing usage orientation for Cato",
"access": "rw",
"note": "default orientation is on the right side of the glasses, with the circular battery compartment facing OUT (and usb port forward)",
"value": {
"front": {
"label": "front",
"description": "",
"access": "rw",
"value": "-y",
"options": [
"+x",
"-x",
"+y",
"-y",
"+z",
"-z"
]
},
"bottom": {
"label": "bottom",
"description": "",
"access": "rw",
"value": "+x",
"options": [
"+x",
"-x",
"+y",
"-y",
"+z",
"-z"
]
},
"left": {
"label": "left",
"description": "",
"access": "rw",
"value": "+z",
"options": [
"+x",
"-x",
"+y",
"-y",
"+z",
"-z"
]
}
}
},
"calibration": {
"label": "Calibration (including automatic) Parameters",
"description": "structure containing both current calibration (trim) values and preferences for auto calibration",
"access": "rw",
"value": {
"drift": {
"label": "drift",
"description": "x, y, z gyroscope drift per-cycle - used as trim adjustments",
"access": "r",
"value": [
0,
0,
0
]
},
"auto_threshold": {
"label": "Auto-Calibration Threshold",
"description": "movement required (as a scale of mouse>idle_threshold) to fail automatic calibration for gyro drift",
"access": "rw",
"value": 3.0,
"range": {
"min": 0.6,
"max": 5.0
}
},
"auto_samples": {
"label": "Auto-Calibration Samples Taken",
"description": "number of samples to wait (at below auto_threshold) required to trigger auto recalibratoion",
"access": "rw",
"value": 100
}
}
},
"battery": {
"label": "Battery",
"description": "DEV TOOL: analog pin values of high and low battery charge [low, high]",
"access": "r",
"value": {
"low": {
"label": "Low",
"description": "Value of analog pin indicating discharged battery. Typ. ~23000",
"access": "r",
"value": 22800
},
"high": {
"label": "High",
"description": "Value of analog pin indicating charged battery. Typ. ~30000",
"access": "r",
"value": 27500
}
}
}
},
"connections": [
{
"connection_name": {
"label": "Connection Name",
"description": "Nickname for this connection",
"access": "rw",
"value": "Default Connection"
},
"screen_size": {
"label": "Screen Size",
"description": "structure containing screen height and width in pixels",
"access": "rw",
"value": {
"height": {
"description": "height in pixels",
"access": "rw",
"value": 1080,
"range": {
"min": 600,
"max": 4320
}
},
"width": {
"description": "width in pixels",
"access": "rw",
"value": 1920,
"range": {
"min": 800,
"max": 8192
}
}
}
},
"operation_mode": {
"value": "practice",
"label": "Mode",
"access": "rw",
"description": "a name defining the operation mode of Cato",
"options": [
"gesture_mouse",
"tv_remote",
"pointer",
"clicker",
"practice"
]
},
"gesture": {
"label": "Gesture Parameters",
"description": "Settings for gesture collection and recognition cutoff tools",
"access": "rw",
"value": {
"key": {
"label": "Gesture Key",
"description": "Human-readable field describing Gesture model's names of gestures",
"note": "This determines text output of practice mode",
"access": "r",
"value": [
"None",
"Nod Up",
"Nod Down",
"Nod Right",
"Nod Left",
"Tilt Right",
"Tilt Left"
]
},
"confidence_threshold": {
"label": "Confidence threshold",
"description": "Threshold of gesture confidence probability [0, 1], for Cato to accept gesture and execute command",
"note": "Low value -> few dry-fires, more frequent misinterpretation. High value -> frequent dry-fires, rare misinterpretation",
"access": "rw",
"value": 0.62,
"range": {
"min": 0.55,
"max": 0.90
}
},
"length": {
"label": "Length",
"description": "Number of samples (max) in a gesture to be fed to Neuton",
"access": "r",
"value": 200
},
"idle_cutoff": {
"label": "Idle Cutoff",
"description": "Number of consecutive idle samples leading to gesture cutoff",
"access": "r",
"value": 20
},
"start_threshold": {
"label": "Movement threshold",
"description": "movement required to start capturing gesture. Startup threshold",
"access": "r",
"value": 22.36
},
"idle_threshold": {
"label": "Idle threshold",
"description": "Value of move speed below which is considered idle - leading to mouse exit. Low number = more stillness to idle out of gesture recognition",
"access": "r",
"value": 30
},
"timeout": {
"label": "Timeout",
"description": "Maximum Time (seconds) to Wait for Gesture Start before exiting recognition window",
"access": "rw",
"value": 1.0,
"range": {
"min": 0.1,
"max": 3.0
}
},
"gc_timeout": {
"label": "Gesture Collection Timeout",
"description": "Time to wait before beginning gesture collection over bluetooth",
"access": "rw",
"value": 10,
"range": {
"min": 5,
"max": 60
}
},
"turbo_rate": {
"label": "Turbo Options",
"description": "Options for 'Turbo' (repeated, accelerating button presses until cancelled)",
"note": "TODO: not yet implemented with current button acctions",
"access": "rw",
"value": {
"initial": {
"label": "Initial Spacing",
"description": "Initial button-press spacing",
"access": "rw",
"value": 1
},
"minimum": {
"label": "Minimum Spacing",
"description": "Minimum (fastest) button press spacings",
"access": "rw",
"value": 0.2
},
"decay_rate": {
"label": "Decay Rate",
"description": "Rate (geometric) of time-between-press decay",
"access": "rw",
"value": 0.9,
"range": {
"min": 0.65,
"max": 0.95
}
}
}
}
}
},
"practice": {
"label": "Practice Mode",
"description": "Settings for practice mode",
"access": "rw",
"value": {
"dense": {
"label": "Format Condensed",
"description": "true: type outputs in a single line; false: type outputs as a table",
"access": "rw",
"value": true,
"options": [true, false]
},
"num_infers": {
"label": "Maximum number of Displayed Inferences",
"description": "Number of relevant inferences displayed per gesture",
"access": "rw",
"value": 6,
"range" : {
"min" : 1,
"max" : 6
}
},
"cutoff": {
"label": "Certainty Cutoff",
"description": "Level of certainty below which gesture will not be displayed",
"access": "rw",
"value": 0.5,
"range" : {
"min" : 0.0,
"max" : 1.0
}
}
}
}
}
]
}