horizon-eda / horizon

Horizon is a free EDA package
https://horizon-eda.org/
GNU General Public License v3.0
1.11k stars 82 forks source link

Footprint generator generates incorrect pitch #751

Closed LHSmicius closed 11 months ago

LHSmicius commented 12 months ago

I found that pitch calculation works incorrectly with SO, PSON and QFN packages (didn't test much yet) and it works good with SON package. Here are some examples. SO: image image

PSON: image image

QFN: image image

SON works good (also tried pitch 0.65 and 1.27), but same problem with pitch 0.655 (rounds to 0.65 or 0.66): image image

Same issue mentioned in https://github.com/horizon-eda/horizon-pool/pull/334 Issue exists on commit 2023-10-04 fff71347d40bf6180e947512ede23f43a5a6cc80 and older (tested 2023-05).

frmdstryr commented 11 months ago

Can you try changing round off to none?

Edit: Seems like it might be helpful to have a 0.005 round off option.

LHSmicius commented 11 months ago

Can you try changing round off to none?

It helped. This trick solved the problem in all cases.

What actually this round-off feature suppose to do?

carrotIndustries commented 11 months ago

What actually this round-off feature suppose to do?

It says so in the tip at the bottom of the window:

All features of the land pattern is rounded to this value, including pad sizes and placement.

IIRC it's an IPC thing.

LHSmicius commented 11 months ago

Ok... That explains everything... Sorry for creating this nooby issue.