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