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
+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