Integrate Measured ESP32 PCB Geometry

- Add measured F.Fab bounds and USB mouth markers
- Add guarded preservation and regression validation
- Refresh review exports and remove draft presentation labels
This commit is contained in:
2026-09-21 22:54:37 +02:00
parent ab6a8010ba
commit 901afbe754
25 changed files with 20490 additions and 850 deletions
+17 -3
View File
@@ -117,9 +117,23 @@ class FootprintRegression(unittest.TestCase):
for row, x in enumerate((0, 25.4)) for index in range(22)
}
self.check_header(footprint, positions)
self.assertFalse(any(isinstance(g, k.PCB_SHAPE)
for g in footprint.GraphicalItems()),
"HW678 must not acquire guessed outlines or envelopes")
shapes = [g for g in footprint.GraphicalItems() if isinstance(g, k.PCB_SHAPE)]
expected = [
(k.SHAPE_T_RECT, mm(-1.365, -1.365), mm(26.725, 54.705), k.FromMM(0.1)),
(k.SHAPE_T_RECT, mm(4.045, -8.255), mm(21.675, -1.365), k.FromMM(0.1)),
(k.SHAPE_T_SEGMENT, mm(2.795, 54.705), mm(11.665, 54.705), k.FromMM(0.3)),
(k.SHAPE_T_SEGMENT, mm(14.195, 54.705), mm(23.065, 54.705), k.FromMM(0.3)),
]
self.assertEqual(Counter((g.GetShape(), xy(g.GetStart()), xy(g.GetEnd()),
g.GetWidth()) for g in shapes), Counter(expected))
for shape in shapes:
self.assertEqual(shape.GetLayer(), k.F_Fab)
self.assertFalse(shape.IsAnyFill())
# Only measured planar bounds/mouth spans: no invented shell depth or RF area.
self.assertAlmostEqual(26.725 - (-1.365), 28.09)
self.assertAlmostEqual(54.705 - (-1.365), 56.07)
self.assertAlmostEqual(54.705 - (-8.255), 62.96)
self.assertAlmostEqual(26.725 - 25.4, 1.325)
if __name__ == "__main__":