Skip to content

fix: use KiCad-standard pad sizes for radial footprint#543

Open
victorjzq wants to merge 1 commit intotscircuit:mainfrom
victorjzq:feat/FOOTPRINT-188
Open

fix: use KiCad-standard pad sizes for radial footprint#543
victorjzq wants to merge 1 commit intotscircuit:mainfrom
victorjzq:feat/FOOTPRINT-188

Conversation

@victorjzq
Copy link
Contributor

/claim #188

Fixes #188

Summary

  • The radial footprint was using incorrect pitch-based scaling (p * 0.5) for hole pad sizes when pitch != 5mm, producing oversized pads (e.g. od=3.75 for p=7.5mm instead of the correct od=2.0)
  • Fixed by using KiCad-standard hole sizes based on capacitor type:
    • Polarized/electrolytic (CP_Radial): id=1.0mm, od=2.0mm — matches KiCad CP_Radial_D10.0mm_P7.50mm
    • Non-polarized (C_Radial): id=0.8mm, od=1.6mm — matches KiCad C_Radial_D10.0mm_H12.5mm_P5.00mm
  • Explicit id/od parameters continue to work as before (no override when user specifies values)

Test plan

  • Added tests/radial_pad_size.test.ts verifying polarized radial at p=7.5mm produces od=2, id=1 matching KiCad reference
  • Updated radial_p8mm snapshot (old code incorrectly scaled pads for non-default pitches)
  • Existing radial and kicad-parity tests continue to pass

Replace the incorrect pitch-based pad scaling (p * 0.5) with proper
KiCad-standard hole sizes: polarized/electrolytic radial caps use
id=1.0mm/od=2.0mm matching CP_Radial KiCad footprints, while
non-polarized caps keep the existing id=0.8mm/od=1.6mm defaults.
@victorjzq
Copy link
Contributor Author

Hey @seveibar — uses KiCad-standard pad sizes for radial footprint. CI green!

@victorjzq
Copy link
Contributor Author

Hey @MustafaMulla29 @rushabhcodes — this PR is CI-green and ready for review. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

width of pads of footprinters looks different as in KiCad even size parameter are same as in KiCad

1 participant