Skip to content

Fix pushbutton KiCad hole parity#683

Open
rushabhcodes wants to merge 1 commit into
tscircuit:mainfrom
rushabhcodes:fix/pushbutton-kicad-parity
Open

Fix pushbutton KiCad hole parity#683
rushabhcodes wants to merge 1 commit into
tscircuit:mainfrom
rushabhcodes:fix/pushbutton-kicad-parity

Conversation

@rushabhcodes

Copy link
Copy Markdown
Contributor

Summary

  • use id for the pushbutton drill diameter
  • use od for the outer pad diameter
  • update the KiCad parity fixture parameters and snapshots

Why

The pushbutton generator ignored od and derived the outer diameter as id × 1.5. The parity fixture therefore inflated the drill diameter to obtain the correct 2 mm outer pad, leaving every drill larger than the matching KiCad footprint.

Impact

Pushbutton footprints now honor both diameter parameters independently, and the parity fixture matches KiCad’s 1.1 mm drill with a 2 mm outer pad.

Validation

  • bun test tests/pushbutton.test.ts tests/kicad-parity/pushbutton_kicad_parity.test.ts
  • bun run build

@rushabhcodes rushabhcodes marked this pull request as ready for review July 3, 2026 10:32
Copilot AI review requested due to automatic review settings July 3, 2026 10:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@seveibar seveibar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the plated holes are worse now imo- there is almost no plating- i don't agree with kicad's version

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants