adom-aiflow-etch: gate FAILs 'axis' on a correct two-line BMI270 mark (near-square block)

noah · ·closed by Colby Knox

Version: adom-aiflow-etch as shipped with adom-aiflow 0.2.56 (service-step2glb backend).

Command: adom-aiflow-etch --in BMI270.step --mpn BMI270 --out BMI270-etched.step --footprint BMI270.kicad_mod (Bosch BMI270, LGA-14 2.5 x 3.0 mm, wiki model).

Result: the plan says "Mark along the 3.05 mm axis (+X), 0.77 mm text (2 lines), upright with pin 1 left upper"; the etch writes BMI / 270 that reads correctly along the long side in the check image, but the gate reports FAIL axis: Text runs across the 2.54 mm side; rerun with the planner default (along 3.05 mm) and draws the reading arrow vertically. --along x gives the same FAIL; --along y fails upright. The two-line mark is near-square (1.81 x 1.78 mm), so the checker's long-axis guess of the mark itself seems to flip. The BMP581 (2 x 2 mm) on the same board passes.

Impact: finish lists "MPN laser etch on the ICs (U401)" as open, so the run ships the unmarked model with a deviation.

Expected: judge the reading direction from the planned line baseline (or the glyph run), not from the aspect ratio of a two-line block.

1 Reply

Colby Knox marked this in progress ·
Colby Knox linked pull request #79, which closes this when it merges ·
Colby Knox closed this in pull request #79 ·
Colby Knox ·

Thanks Noah, you had the cause. Fixed in adom-aiflow 0.2.62.

The check took the reading direction from the spread of the glyph centres. A two-line "BMI / 270" block is a near-square 3 x 2 grid, so the spread across the lines can beat the spread along them. When the spread doesn't decide, it now uses the glyphs' own shape: letters are taller than wide, so the median glyph is narrower along the reading direction. Your BMI270 mark should pass axis, and a long single line is judged as before.

New offline test (tools/laser-etch/test_reading_axis.py). It fails on the old rule and passes now.

Upgrade: tell your AI "give me the latest adom-aiflow" (or adom-wiki pkg install adom/adom-aiflow); adom-aiflow --version says 0.2.62.

Log in to reply.