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.8357,4.89461,25.5144,6.7909,0.97956,0.20115,1.04855,0.279081,8.28657,0.0629746,76.4786
2,18.6329,11.9004,19.8481,13.1165,0.842777,0.538263,0.897739,0.593268,7.62587,0.0151991,82.0646
3,13.4278,20.7067,15.7532,20.9087,0.544088,0.839028,0.638313,0.847214,5.9155,-0.0737974,81.8536
4,4.49902,22.8532,6.4428,22.2638,0.193158,0.981168,0.276612,0.955863,-0.85372,-0.0867864,85.1654
5,-1.55064,21.4862,0.342398,19.7527,-0.0719818,0.997406,0.0158943,0.916933,-9.607,-0.0704882,81.5458
6,-10.2152,16.7462,-9.43137,15.3167,-0.520759,0.853703,-0.4808,0.780825,-8.27966,0.00726374,85.6756
7,-17.9011,11.6037,-17.8305,9.69668,-0.83913,0.543931,-0.835818,0.45454,-5.24169,0.072486,84.9545
8,-24.0114,2.95619,-25.6477,-0.440784,-0.992506,0.122194,-1.06014,-0.0182197,3.89417,0.15091,72.8073
9,-15.6788,-2.61501,-16.6028,-4.97269,-0.986375,-0.164514,-1.0445,-0.312839,8.59478,0.134135,81.8305
10,-19.749,-11.9979,-21.092,-14.035,-0.854645,-0.519213,-0.912761,-0.607367,9.72975,0.0410105,82.054
11,-12.8532,-18.9493,-14.4815,-19.9774,-0.561344,-0.827583,-0.632459,-0.872483,7.6843,-0.0341847,85.8291
12,-3.73546,-20.7558,-5.08623,-20.7576,-0.177126,-0.984188,-0.241176,-0.984273,1.2579,-0.062803,90.6592
13,1.92061,-15.8161,1.9149,-15.5855,0.120549,-0.992707,0.12019,-0.978234,-1.42652,0.00247188,91.1834
14,12.63,-18.757,13.1517,-17.2546,0.55853,-0.829484,0.581603,-0.763042,-4.2426,0.0560974,86.4346
15,12.1165,-8.34016,13.7212,-8.11295,0.823723,-0.566992,0.932812,-0.551545,8.21223,0.0734496,81.0338
16,22.5956,-3.86931,23.3134,-1.5113,0.985653,-0.168785,1.01696,-0.0659251,1.06421,0.106992,79.2134
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.8357 4.89461 25.5144 6.7909 0.97956 0.20115 1.04855 0.279081 8.28657 0.0629746 76.4786
3 2 18.6329 11.9004 19.8481 13.1165 0.842777 0.538263 0.897739 0.593268 7.62587 0.0151991 82.0646
4 3 13.4278 20.7067 15.7532 20.9087 0.544088 0.839028 0.638313 0.847214 5.9155 -0.0737974 81.8536
5 4 4.49902 22.8532 6.4428 22.2638 0.193158 0.981168 0.276612 0.955863 -0.85372 -0.0867864 85.1654
6 5 -1.55064 21.4862 0.342398 19.7527 -0.0719818 0.997406 0.0158943 0.916933 -9.607 -0.0704882 81.5458
7 6 -10.2152 16.7462 -9.43137 15.3167 -0.520759 0.853703 -0.4808 0.780825 -8.27966 0.00726374 85.6756
8 7 -17.9011 11.6037 -17.8305 9.69668 -0.83913 0.543931 -0.835818 0.45454 -5.24169 0.072486 84.9545
9 8 -24.0114 2.95619 -25.6477 -0.440784 -0.992506 0.122194 -1.06014 -0.0182197 3.89417 0.15091 72.8073
10 9 -15.6788 -2.61501 -16.6028 -4.97269 -0.986375 -0.164514 -1.0445 -0.312839 8.59478 0.134135 81.8305
11 10 -19.749 -11.9979 -21.092 -14.035 -0.854645 -0.519213 -0.912761 -0.607367 9.72975 0.0410105 82.054
12 11 -12.8532 -18.9493 -14.4815 -19.9774 -0.561344 -0.827583 -0.632459 -0.872483 7.6843 -0.0341847 85.8291
13 12 -3.73546 -20.7558 -5.08623 -20.7576 -0.177126 -0.984188 -0.241176 -0.984273 1.2579 -0.062803 90.6592
14 13 1.92061 -15.8161 1.9149 -15.5855 0.120549 -0.992707 0.12019 -0.978234 -1.42652 0.00247188 91.1834
15 14 12.63 -18.757 13.1517 -17.2546 0.55853 -0.829484 0.581603 -0.763042 -4.2426 0.0560974 86.4346
16 15 12.1165 -8.34016 13.7212 -8.11295 0.823723 -0.566992 0.932812 -0.551545 8.21223 0.0734496 81.0338
17 16 22.5956 -3.86931 23.3134 -1.5113 0.985653 -0.168785 1.01696 -0.0659251 1.06421 0.106992 79.2134