Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

F6.2 center check does not consider fab lines #242

Open
evanshultz opened this issue May 18, 2018 · 2 comments
Open

F6.2 center check does not consider fab lines #242

evanshultz opened this issue May 18, 2018 · 2 comments

Comments

@evanshultz
Copy link
Collaborator

KiCad/kicad-footprints#570 has an issue with centering horizontally, according to Travis, with the footprint center at (-8.025,0.0)mm. I verified with the current HEAD scripts run locally.

But actually, there is no problem. The extents of the pads on the left and fab lines on the right are +/-10.9mm.

I don't see anything obviously wrong with the footprint. A few tests:

  • If I move the fab lines on the right side leftward, the calculated center doesn't change.
  • If I move the two pad 5s, the calculated center does change.

So it seems the scripts are not taking into account the fab lines when calculating the footprint center.

@evanshultz evanshultz changed the title Centering does consider pads and fab Centering does not consider pads and fab lines May 18, 2018
@Ratfink Ratfink changed the title Centering does not consider pads and fab lines F6.2 center check does not consider pads and fab lines May 18, 2018
@Ratfink
Copy link
Collaborator

Ratfink commented May 18, 2018

Yes, it only calculates the center based on the pads' shapes, which happens on line 27 of pcb/rules/F6_2.py. This works for many packages, but as you point out it really isn't the right approach overall. It would be better to consider the fab layer lines as well.

@Ratfink Ratfink changed the title F6.2 center check does not consider pads and fab lines F6.2 center check does not consider fab lines May 18, 2018
@cpresser
Copy link
Contributor

Actually there is already a proposed patch for that.
#260

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants