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,24.194,5.30758,25.3877,6.89524,0.976772,0.21428,1.02497,0.278378,5.97734,0.0534641,78.0536
2,18.8368,12.1186,18.7172,13.7904,0.840992,0.541048,0.835654,0.615689,3.70297,0.065027,78.9914
3,13.7918,20.6633,13.3499,22.5585,0.555152,0.831749,0.537366,0.908034,5.35474,0.0571707,79.3008
4,4.00106,22.1466,2.64982,23.2262,0.177784,0.984069,0.117743,1.03204,3.53358,0.0682465,86.4029
5,-1.7494,19.9855,-2.77389,20.545,-0.0871999,0.996191,-0.138266,1.02408,3.73111,0.0446452,87.6302
6,-10.1887,17.3743,-10.838,17.7509,-0.505861,0.862615,-0.538097,0.881312,3.34557,0.0164162,90.2709
7,-17.7969,12.2543,-18.4508,11.5209,-0.823633,0.567123,-0.853896,0.533181,0.630543,0.0450353,86.2201
8,-24.2144,2.21301,-25.5951,0.165895,-0.99585,0.0910129,-1.05263,0.00682266,3.92658,0.0936501,78.5718
9,-15.5974,-3.15957,-15.625,-4.89775,-0.980093,-0.198538,-0.981828,-0.30776,2.301,0.106785,84.4575
10,-19.953,-11.5419,-19.1744,-13.9822,-0.865611,-0.500716,-0.831835,-0.606582,3.07318,0.10679,77.2816
11,-13.1113,-19.0908,-11.439,-21.3903,-0.56613,-0.824316,-0.493921,-0.923604,4.2438,0.115201,79.1803
12,-3.41035,-20.7596,-0.905198,-21.7942,-0.162105,-0.986773,-0.0430271,-1.03595,2.50039,0.126385,81.5547
13,2.34978,-15.6965,5.13967,-16.0504,0.148051,-0.98898,0.323832,-1.01128,5.61605,0.168053,80.7737
14,13.1602,-18.321,16.2522,-17.6607,0.583402,-0.812183,0.720469,-0.782909,5.18091,0.130231,77.8198
15,12.769,-8.09612,15.5862,-8.15662,0.844546,-0.535482,1.03088,-0.539484,15.7154,0.100194,78.1031
16,22.8351,-3.34293,23.9488,-1.92221,0.989454,-0.14485,1.03771,-0.08329,3.5317,0.0697912,81.5972
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 24.194 5.30758 25.3877 6.89524 0.976772 0.21428 1.02497 0.278378 5.97734 0.0534641 78.0536
3 2 18.8368 12.1186 18.7172 13.7904 0.840992 0.541048 0.835654 0.615689 3.70297 0.065027 78.9914
4 3 13.7918 20.6633 13.3499 22.5585 0.555152 0.831749 0.537366 0.908034 5.35474 0.0571707 79.3008
5 4 4.00106 22.1466 2.64982 23.2262 0.177784 0.984069 0.117743 1.03204 3.53358 0.0682465 86.4029
6 5 -1.7494 19.9855 -2.77389 20.545 -0.0871999 0.996191 -0.138266 1.02408 3.73111 0.0446452 87.6302
7 6 -10.1887 17.3743 -10.838 17.7509 -0.505861 0.862615 -0.538097 0.881312 3.34557 0.0164162 90.2709
8 7 -17.7969 12.2543 -18.4508 11.5209 -0.823633 0.567123 -0.853896 0.533181 0.630543 0.0450353 86.2201
9 8 -24.2144 2.21301 -25.5951 0.165895 -0.99585 0.0910129 -1.05263 0.00682266 3.92658 0.0936501 78.5718
10 9 -15.5974 -3.15957 -15.625 -4.89775 -0.980093 -0.198538 -0.981828 -0.30776 2.301 0.106785 84.4575
11 10 -19.953 -11.5419 -19.1744 -13.9822 -0.865611 -0.500716 -0.831835 -0.606582 3.07318 0.10679 77.2816
12 11 -13.1113 -19.0908 -11.439 -21.3903 -0.56613 -0.824316 -0.493921 -0.923604 4.2438 0.115201 79.1803
13 12 -3.41035 -20.7596 -0.905198 -21.7942 -0.162105 -0.986773 -0.0430271 -1.03595 2.50039 0.126385 81.5547
14 13 2.34978 -15.6965 5.13967 -16.0504 0.148051 -0.98898 0.323832 -1.01128 5.61605 0.168053 80.7737
15 14 13.1602 -18.321 16.2522 -17.6607 0.583402 -0.812183 0.720469 -0.782909 5.18091 0.130231 77.8198
16 15 12.769 -8.09612 15.5862 -8.15662 0.844546 -0.535482 1.03088 -0.539484 15.7154 0.100194 78.1031
17 16 22.8351 -3.34293 23.9488 -1.92221 0.989454 -0.14485 1.03771 -0.08329 3.5317 0.0697912 81.5972