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

+17
View File
@@ -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.8371,4.89622,25.5118,6.79164,0.97955,0.201203,1.04837,0.279093,8.26956,0.0629661,76.4852
2,18.6336,11.9013,19.8407,13.1208,0.842769,0.538276,0.897363,0.593431,7.60361,0.0155293,82.0527
3,13.4292,20.7065,15.7389,20.9186,0.544131,0.839,0.637718,0.847591,5.91377,-0.0730423,81.9168
4,4.49918,22.8528,6.4235,22.2737,0.193169,0.981166,0.275788,0.956302,-0.826745,-0.0858824,85.2916
5,-1.54991,21.4849,0.327296,19.7631,-0.0719522,0.997408,0.0151943,0.917475,-9.53987,-0.0698778,81.6785
6,-10.215,16.7447,-9.43817,15.3233,-0.520787,0.853686,-0.48118,0.78122,-8.22583,0.00732842,85.7358
7,-17.9011,11.6016,-17.8302,9.70021,-0.839174,0.543863,-0.835848,0.454728,-5.22859,0.0722652,84.9754
8,-24.0121,2.95328,-25.6462,-0.439301,-0.992521,0.122071,-1.06006,-0.0181582,3.88881,0.150712,72.8266
9,-15.6784,-2.61717,-16.5964,-4.97434,-0.986352,-0.16465,-1.04411,-0.312943,8.55747,0.134176,81.8404
10,-19.7479,-12.0004,-21.0779,-14.0434,-0.854584,-0.519313,-0.91214,-0.607722,9.69735,0.041533,82.0481
11,-12.8522,-18.9505,-14.4627,-19.9885,-0.561291,-0.827618,-0.631625,-0.87295,7.6767,-0.0332958,85.8973
12,-3.73426,-20.7558,-5.06453,-20.7655,-0.177071,-0.984198,-0.24015,-0.984656,1.27551,-0.0617776,90.7988
13,1.9222,-15.8157,1.9317,-15.5901,0.12065,-0.992695,0.121246,-0.978535,-1.37717,0.00334723,91.2131
14,12.6319,-18.7554,13.1674,-17.2585,0.558623,-0.829422,0.582304,-0.763226,-4.1883,0.0564666,86.4487
15,12.1191,-8.33928,13.7307,-8.1159,0.823807,-0.56687,0.93336,-0.551686,8.26541,0.0734899,81.0217
16,22.5965,-3.86726,23.3155,-1.51365,0.985669,-0.168691,1.01703,-0.0660258,1.07311,0.106812,79.2261
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.8371 4.89622 25.5118 6.79164 0.97955 0.201203 1.04837 0.279093 8.26956 0.0629661 76.4852
3 2 18.6336 11.9013 19.8407 13.1208 0.842769 0.538276 0.897363 0.593431 7.60361 0.0155293 82.0527
4 3 13.4292 20.7065 15.7389 20.9186 0.544131 0.839 0.637718 0.847591 5.91377 -0.0730423 81.9168
5 4 4.49918 22.8528 6.4235 22.2737 0.193169 0.981166 0.275788 0.956302 -0.826745 -0.0858824 85.2916
6 5 -1.54991 21.4849 0.327296 19.7631 -0.0719522 0.997408 0.0151943 0.917475 -9.53987 -0.0698778 81.6785
7 6 -10.215 16.7447 -9.43817 15.3233 -0.520787 0.853686 -0.48118 0.78122 -8.22583 0.00732842 85.7358
8 7 -17.9011 11.6016 -17.8302 9.70021 -0.839174 0.543863 -0.835848 0.454728 -5.22859 0.0722652 84.9754
9 8 -24.0121 2.95328 -25.6462 -0.439301 -0.992521 0.122071 -1.06006 -0.0181582 3.88881 0.150712 72.8266
10 9 -15.6784 -2.61717 -16.5964 -4.97434 -0.986352 -0.16465 -1.04411 -0.312943 8.55747 0.134176 81.8404
11 10 -19.7479 -12.0004 -21.0779 -14.0434 -0.854584 -0.519313 -0.91214 -0.607722 9.69735 0.041533 82.0481
12 11 -12.8522 -18.9505 -14.4627 -19.9885 -0.561291 -0.827618 -0.631625 -0.87295 7.6767 -0.0332958 85.8973
13 12 -3.73426 -20.7558 -5.06453 -20.7655 -0.177071 -0.984198 -0.24015 -0.984656 1.27551 -0.0617776 90.7988
14 13 1.9222 -15.8157 1.9317 -15.5901 0.12065 -0.992695 0.121246 -0.978535 -1.37717 0.00334723 91.2131
15 14 12.6319 -18.7554 13.1674 -17.2585 0.558623 -0.829422 0.582304 -0.763226 -4.1883 0.0564666 86.4487
16 15 12.1191 -8.33928 13.7307 -8.1159 0.823807 -0.56687 0.93336 -0.551686 8.26541 0.0734899 81.0217
17 16 22.5965 -3.86726 23.3155 -1.51365 0.985669 -0.168691 1.01703 -0.0660258 1.07311 0.106812 79.2261