Lamp testbench in Rust around the HPCS 6500

lampbench station / export / label / tm30 / calibrate replace the Python
lamp_station.py, lamp_export.py, label_printer.py, tm30.py and
calibration.py that lived in HPCS6500-py. The driver is a submodule
(HPCS6500/, like mppt-testbench). Workspace crates: tm30 (TM-30-18 port of
colour-science 0.4.7), brother-ql (raster protocol, byte-identical to
brother_ql) and lamp-label (QR + ID labels for the QL-820NWB).

Bundles are byte-identical to lamp_export.py's (golden tests); the station
runs end to end in a test against the simulated instrument.
This commit is contained in:
grabowski committed 2026-10-22 17:26:14 +07:00
commit 2a3f28001c
241 files changed
+46390

No files matched your search

@@ -0,0 +1,17 @@
bin,ref_a,ref_b,test_a,test_b,ref_a_norm,ref_b_norm,test_a_norm,test_b_norm,Rcs_pct,Rhs,Rf_h
1,23.8322,4.89044,25.5143,6.78835,0.979588,0.201015,1.04873,0.279026,8.30334,0.0630229,76.4441
2,18.6309,11.8982,19.8479,13.1157,0.842797,0.538232,0.897851,0.593308,7.63743,0.015208,82.0393
3,13.4241,20.707,15.7508,20.9107,0.543979,0.839099,0.638262,0.847352,5.92434,-0.0738084,81.8363
4,4.49861,22.8543,6.44068,22.2658,0.193133,0.981173,0.276509,0.955907,-0.851417,-0.0867033,85.1735
5,-1.55246,21.4895,0.339439,19.7562,-0.0720553,0.997401,0.0157546,0.916955,-9.60308,-0.0704284,81.5541
6,-10.2156,16.75,-9.43359,15.3207,-0.520687,0.853748,-0.480829,0.780893,-8.27205,0.00733577,85.6792
7,-17.901,11.6088,-17.832,9.70121,-0.839017,0.544105,-0.835783,0.454695,-5.23628,0.0725445,84.9471
8,-24.0094,2.96356,-25.6481,-0.43544,-0.992468,0.122504,-1.0602,-0.0179996,3.90235,0.151018,72.7844
9,-15.6797,-2.60957,-16.6033,-4.96949,-0.986432,-0.164172,-1.04454,-0.312638,8.59555,0.134277,81.8143
10,-19.7518,-11.9916,-21.0921,-14.0327,-0.854798,-0.518961,-0.912802,-0.607292,9.73027,0.0412196,82.0354
11,-12.8556,-18.9464,-14.4795,-19.9788,-0.561476,-0.827493,-0.632401,-0.872584,7.6896,-0.033921,85.838
12,-3.73856,-20.7556,-5.08464,-20.7591,-0.17727,-0.984162,-0.241097,-0.984329,1.26154,-0.0625677,90.6907
13,1.91647,-15.8171,1.91568,-15.5877,0.120285,-0.992739,0.120235,-0.978341,-1.41314,0.00276032,91.1775
14,12.6248,-18.7612,13.1529,-17.2582,0.558288,-0.829647,0.581642,-0.763184,-4.22874,0.0563433,86.4173
15,12.1099,-8.34251,13.7213,-8.11653,0.823504,-0.56731,0.93308,-0.551943,8.25711,0.0736542,80.9915
16,22.5933,-3.87457,23.3147,-1.51543,0.985612,-0.169025,1.01708,-0.0661093,1.07904,0.107078,79.1926
1 bin ref_a ref_b test_a test_b ref_a_norm ref_b_norm test_a_norm test_b_norm Rcs_pct Rhs Rf_h
2 1 23.8322 4.89044 25.5143 6.78835 0.979588 0.201015 1.04873 0.279026 8.30334 0.0630229 76.4441
3 2 18.6309 11.8982 19.8479 13.1157 0.842797 0.538232 0.897851 0.593308 7.63743 0.015208 82.0393
4 3 13.4241 20.707 15.7508 20.9107 0.543979 0.839099 0.638262 0.847352 5.92434 -0.0738084 81.8363
5 4 4.49861 22.8543 6.44068 22.2658 0.193133 0.981173 0.276509 0.955907 -0.851417 -0.0867033 85.1735
6 5 -1.55246 21.4895 0.339439 19.7562 -0.0720553 0.997401 0.0157546 0.916955 -9.60308 -0.0704284 81.5541
7 6 -10.2156 16.75 -9.43359 15.3207 -0.520687 0.853748 -0.480829 0.780893 -8.27205 0.00733577 85.6792
8 7 -17.901 11.6088 -17.832 9.70121 -0.839017 0.544105 -0.835783 0.454695 -5.23628 0.0725445 84.9471
9 8 -24.0094 2.96356 -25.6481 -0.43544 -0.992468 0.122504 -1.0602 -0.0179996 3.90235 0.151018 72.7844
10 9 -15.6797 -2.60957 -16.6033 -4.96949 -0.986432 -0.164172 -1.04454 -0.312638 8.59555 0.134277 81.8143
11 10 -19.7518 -11.9916 -21.0921 -14.0327 -0.854798 -0.518961 -0.912802 -0.607292 9.73027 0.0412196 82.0354
12 11 -12.8556 -18.9464 -14.4795 -19.9788 -0.561476 -0.827493 -0.632401 -0.872584 7.6896 -0.033921 85.838
13 12 -3.73856 -20.7556 -5.08464 -20.7591 -0.17727 -0.984162 -0.241097 -0.984329 1.26154 -0.0625677 90.6907
14 13 1.91647 -15.8171 1.91568 -15.5877 0.120285 -0.992739 0.120235 -0.978341 -1.41314 0.00276032 91.1775
15 14 12.6248 -18.7612 13.1529 -17.2582 0.558288 -0.829647 0.581642 -0.763184 -4.22874 0.0563433 86.4173
16 15 12.1099 -8.34251 13.7213 -8.11653 0.823504 -0.56731 0.93308 -0.551943 8.25711 0.0736542 80.9915
17 16 22.5933 -3.87457 23.3147 -1.51543 0.985612 -0.169025 1.01708 -0.0661093 1.07904 0.107078 79.1926