Add alignment state indicator and pluggable data sources

- AlignmentThresholds dataclass + VisionEngine.__init__ for injection
- alignment_state computed per snapshot (ready/aligning/fault)
- MonitorPlot circle/vector/legend driven by state color
- Status dot + label moved into POSITION VISUALIZATION panel header
- CsvSessionSource + DemoSource pluggable DataSource layer
- Synthetic DATA/ready/ and DATA/aligning/ sessions for visual testing
- Fix CAM 3 label placement (below circle, not above)
This commit is contained in:
Your Name
2026-05-26 14:01:47 -07:00
parent b9adc7c0b8
commit 02327a7a21
60 changed files with 29018 additions and 71 deletions
+61
View File
@@ -0,0 +1,61 @@
# saved_on,DATA
# master_file,R10709P0.CSV
# remote_begin,BEGIN_REMOTE_CSV SOURCE=BOARD_REMOTE SPI=1 BIT=4 POINTS=51 MODE=ORDINARY STATUS=ERROR
# source,BOARD_REMOTE
# spi,SPI1
# tick_ms,207407
# bit,4
# edge_mode,ORDINARY
# points,51
x,y
240,28
161,30
206,31
51,32
278,32
8,48
49,50
282,51
207,62
272,81
122,86
42,96
80,98
99,98
209,98
134,105
247,110
152,112
35,121
161,123
292,127
56,128
237,128
94,143
268,162
207,174
221,182
85,195
2,200
217,211
42,215
72,217
147,217
39,227
275,230
136,233
125,243
296,243
209,249
285,250
245,258
30,261
26,277
110,277
299,290
68,293
30,297
26,300
36,305
297,305
21,318
1 # saved_on DATA
2 # master_file R10709P0.CSV
3 # remote_begin BEGIN_REMOTE_CSV SOURCE=BOARD_REMOTE SPI=1 BIT=4 POINTS=51 MODE=ORDINARY STATUS=ERROR
4 # source BOARD_REMOTE
5 # spi SPI1
6 # tick_ms 207407
7 # bit 4
8 # edge_mode ORDINARY
9 # points 51
10 x y
11 240 28
12 161 30
13 206 31
14 51 32
15 278 32
16 8 48
17 49 50
18 282 51
19 207 62
20 272 81
21 122 86
22 42 96
23 80 98
24 99 98
25 209 98
26 134 105
27 247 110
28 152 112
29 35 121
30 161 123
31 292 127
32 56 128
33 237 128
34 94 143
35 268 162
36 207 174
37 221 182
38 85 195
39 2 200
40 217 211
41 42 215
42 72 217
43 147 217
44 39 227
45 275 230
46 136 233
47 125 243
48 296 243
49 209 249
50 285 250
51 245 258
52 30 261
53 26 277
54 110 277
55 299 290
56 68 293
57 30 297
58 26 300
59 36 305
60 297 305
61 21 318
+55
View File
@@ -0,0 +1,55 @@
# saved_on,DATA
# master_file,R20709P0.CSV
# remote_begin,BEGIN_REMOTE_CSV SOURCE=BOARD_REMOTE SPI=2 BIT=4 POINTS=45 MODE=ORDINARY STATUS=ERROR
# source,BOARD_REMOTE
# spi,SPI2
# tick_ms,191624
# bit,4
# edge_mode,ORDINARY
# points,45
x,y
38,5
271,5
288,5
66,22
142,23
129,27
179,36
58,39
289,52
136,60
136,68
54,69
318,80
146,81
122,84
108,128
67,135
105,136
80,140
68,154
284,154
235,162
2,171
108,176
53,182
21,184
158,187
19,190
126,190
287,209
91,212
48,217
283,219
76,221
83,227
259,251
110,260
38,276
225,279
77,280
299,283
55,284
145,310
155,314
235,319
1 # saved_on DATA
2 # master_file R20709P0.CSV
3 # remote_begin BEGIN_REMOTE_CSV SOURCE=BOARD_REMOTE SPI=2 BIT=4 POINTS=45 MODE=ORDINARY STATUS=ERROR
4 # source BOARD_REMOTE
5 # spi SPI2
6 # tick_ms 191624
7 # bit 4
8 # edge_mode ORDINARY
9 # points 45
10 x y
11 38 5
12 271 5
13 288 5
14 66 22
15 142 23
16 129 27
17 179 36
18 58 39
19 289 52
20 136 60
21 136 68
22 54 69
23 318 80
24 146 81
25 122 84
26 108 128
27 67 135
28 105 136
29 80 140
30 68 154
31 284 154
32 235 162
33 2 171
34 108 176
35 53 182
36 21 184
37 158 187
38 19 190
39 126 190
40 287 209
41 91 212
42 48 217
43 283 219
44 76 221
45 83 227
46 259 251
47 110 260
48 38 276
49 225 279
50 77 280
51 299 283
52 55 284
53 145 310
54 155 314
55 235 319
+68
View File
@@ -0,0 +1,68 @@
# file,S10709P0.CSV
# source,BOARD_LOCAL
# spi,SPI1
# tick_ms,194163
# bit,4
# edge_mode,ORDINARY
# points,60
x,y
143,4
58,13
118,17
217,17
136,23
167,29
138,34
99,36
137,37
149,41
253,47
16,48
120,52
173,53
25,57
115,72
136,72
235,74
79,82
312,88
182,108
162,109
80,111
186,113
215,113
286,113
24,117
112,120
141,126
274,126
276,135
195,139
175,143
195,143
50,184
233,187
84,190
64,194
48,195
256,203
299,205
162,206
82,217
300,220
84,237
71,261
236,275
53,280
102,280
41,283
14,288
127,288
109,291
186,296
230,302
45,303
217,306
259,309
177,310
151,317
1 # file S10709P0.CSV
2 # source BOARD_LOCAL
3 # spi SPI1
4 # tick_ms 194163
5 # bit 4
6 # edge_mode ORDINARY
7 # points 60
8 x y
9 143 4
10 58 13
11 118 17
12 217 17
13 136 23
14 167 29
15 138 34
16 99 36
17 137 37
18 149 41
19 253 47
20 16 48
21 120 52
22 173 53
23 25 57
24 115 72
25 136 72
26 235 74
27 79 82
28 312 88
29 182 108
30 162 109
31 80 111
32 186 113
33 215 113
34 286 113
35 24 117
36 112 120
37 141 126
38 274 126
39 276 135
40 195 139
41 175 143
42 195 143
43 50 184
44 233 187
45 84 190
46 64 194
47 48 195
48 256 203
49 299 205
50 162 206
51 82 217
52 300 220
53 84 237
54 71 261
55 236 275
56 53 280
57 102 280
58 41 283
59 14 288
60 127 288
61 109 291
62 186 296
63 230 302
64 45 303
65 217 306
66 259 309
67 177 310
68 151 317
+52
View File
@@ -0,0 +1,52 @@
# file,S20709P0.CSV
# source,BOARD_LOCAL
# spi,SPI2
# tick_ms,233842
# bit,4
# edge_mode,ORDINARY
# points,44
x,y
272,1
113,4
251,10
174,11
37,31
116,33
118,35
291,41
260,55
175,58
6,59
65,66
257,92
312,102
277,103
217,109
158,123
30,124
62,127
2,135
85,136
275,137
122,143
307,166
17,170
58,186
79,192
160,205
151,223
192,225
265,232
81,233
44,249
153,260
37,264
240,271
36,273
83,277
244,282
129,284
302,284
118,302
196,306
271,311
1 # file S20709P0.CSV
2 # source BOARD_LOCAL
3 # spi SPI2
4 # tick_ms 233842
5 # bit 4
6 # edge_mode ORDINARY
7 # points 44
8 x y
9 272 1
10 113 4
11 251 10
12 174 11
13 37 31
14 116 33
15 118 35
16 291 41
17 260 55
18 175 58
19 6 59
20 65 66
21 257 92
22 312 102
23 277 103
24 217 109
25 158 123
26 30 124
27 62 127
28 2 135
29 85 136
30 275 137
31 122 143
32 307 166
33 17 170
34 58 186
35 79 192
36 160 205
37 151 223
38 192 225
39 265 232
40 81 233
41 44 249
42 153 260
43 37 264
44 240 271
45 36 273
46 83 277
47 244 282
48 129 284
49 302 284
50 118 302
51 196 306
52 271 311