diff --git a/kibot/out_report.py b/kibot/out_report.py index 7850bc45..864b2e00 100644 --- a/kibot/out_report.py +++ b/kibot/out_report.py @@ -374,6 +374,7 @@ class ReportOptions(BaseOptions): def collect_data(self, board): ds = board.GetDesignSettings() + extra_pth_drill = GS.global_extra_pth_drill*pcbnew.IU_PER_MM ########################################################### # Board size ########################################################### @@ -428,12 +429,11 @@ class ReportOptions(BaseOptions): via = t.Cast() via_id = (via.GetDrill(), via.GetWidth()) self._vias[via_id] = self._vias.get(via_id, 0) + 1 - self.oar_vias = min(self.oar_vias, via_id[1] - via_id[0]) + self.oar_vias = min(self.oar_vias, via_id[1] - (via_id[0]+extra_pth_drill)) self.track_min = min(self.track_d, self.track) ########################################################### # Drill (min) ########################################################### - extra_pth_drill = GS.global_extra_pth_drill*pcbnew.IU_PER_MM self.extra_pth_drill = extra_pth_drill modules = board.GetModules() if GS.ki5() else board.GetFootprints() self._drills = {} @@ -479,8 +479,8 @@ class ReportOptions(BaseOptions): self.slot = min(self.slot, m[0]) # print('{} @ {}'.format(dr, pad.GetPosition())) pad_sz = pad.GetSize() - oar_x = pad_sz.x - dr.x - oar_y = pad_sz.y - dr.y + oar_x = pad_sz.x - (dr.x+adjust) + oar_y = pad_sz.y - (dr.y+adjust) oar_t = min(oar_x, oar_y) if oar_t: self.oar_pads = min(self.oar_pads, oar_t) @@ -528,7 +528,7 @@ class ReportOptions(BaseOptions): h = v.m_Drill if not d and not h: continue # KiCad 6 - self.oar_vias_d = min(self.oar_vias_d, d - h) + self.oar_vias_d = min(self.oar_vias_d, d - (h+extra_pth_drill)) self._vias_defined.add((h, d)) self._via_sizes_sorted.append((h, d)) ########################################################### diff --git a/tests/reference/5_1_6/light_control-report.txt b/tests/reference/5_1_6/light_control-report.txt index 49cf880e..06af4226 100644 --- a/tests/reference/5_1_6/light_control-report.txt +++ b/tests/reference/5_1_6/light_control-report.txt @@ -38,9 +38,9 @@ Via: 0.51/0.25 mm (20/10 mils) - Micro via: no [0.2/0.1 mm (8/4 mils)] - Burried/blind via: no -Outer Annular Ring: 0.25 mm (10 mils) +Outer Annular Ring: 0.15 mm (6 mils) -- By design rules: 0.25 mm (10 mils) +- By design rules: 0.15 mm (6 mils) Eurocircuits class: 6C diff --git a/tests/reference/5_1_6/light_control-report.txt_2 b/tests/reference/5_1_6/light_control-report.txt_2 index 49cf880e..06af4226 100644 --- a/tests/reference/5_1_6/light_control-report.txt_2 +++ b/tests/reference/5_1_6/light_control-report.txt_2 @@ -38,9 +38,9 @@ Via: 0.51/0.25 mm (20/10 mils) - Micro via: no [0.2/0.1 mm (8/4 mils)] - Burried/blind via: no -Outer Annular Ring: 0.25 mm (10 mils) +Outer Annular Ring: 0.15 mm (6 mils) -- By design rules: 0.25 mm (10 mils) +- By design rules: 0.15 mm (6 mils) Eurocircuits class: 6C diff --git a/tests/reference/5_1_6/light_control-report_simple.txt b/tests/reference/5_1_6/light_control-report_simple.txt index 2a1c4014..dbe785e7 100644 --- a/tests/reference/5_1_6/light_control-report_simple.txt +++ b/tests/reference/5_1_6/light_control-report_simple.txt @@ -13,7 +13,7 @@ Minimum drill size: ≥ 0.35 mm (finished metalized hole: 0.25 mm) Minimum slot width: ≥ 0.6 mm -Ring collar: ≥ 0.25 mm +Ring collar: ≥ 0.15 mm Materials: diff --git a/tests/reference/6_0_4/light_control-report.txt b/tests/reference/6_0_4/light_control-report.txt index 6042150f..da1c9357 100644 --- a/tests/reference/6_0_4/light_control-report.txt +++ b/tests/reference/6_0_4/light_control-report.txt @@ -63,9 +63,9 @@ Via: 0.51/0.25 mm (20/10 mils) - Micro via: no [0.2/0.1 mm (8/4 mils)] - Burried/blind via: no -Outer Annular Ring: 0.25 mm (10 mils) +Outer Annular Ring: 0.15 mm (6 mils) -- By design rules: 0.25 mm (10 mils) +- By design rules: 0.15 mm (6 mils) Eurocircuits class: 6C diff --git a/tests/reference/6_0_4/light_control-report_simple.txt b/tests/reference/6_0_4/light_control-report_simple.txt index 0fe32353..1d97be9d 100644 --- a/tests/reference/6_0_4/light_control-report_simple.txt +++ b/tests/reference/6_0_4/light_control-report_simple.txt @@ -13,7 +13,7 @@ Minimum drill size: ≥ 0.35 mm (finished metalized hole: 0.25 mm) Minimum slot width: ≥ 0.6 mm -Ring collar: ≥ 0.25 mm +Ring collar: ≥ 0.15 mm Special features: