Skip to content

use square pin1 pad for electrolytic capacitor#680

Merged
seveibar merged 1 commit into
tscircuit:mainfrom
rushabhcodes:codex/fix-electrolytic-kicad-parity
Jul 4, 2026
Merged

use square pin1 pad for electrolytic capacitor#680
seveibar merged 1 commit into
tscircuit:mainfrom
rushabhcodes:codex/fix-electrolytic-kicad-parity

Conversation

@rushabhcodes

Copy link
Copy Markdown
Contributor

Summary

  • use a square plated pad for electrolytic pin 1
  • retain the circular plated pad for pin 2
  • update the footprint and KiCad parity SVG snapshots

Why

The generated electrolytic footprint used circular pads for both pins, while the matching KiCad footprint uses a square pad for pin 1 as its polarity marker. This caused an 8.35% pad-area difference in the parity visualization.

Impact

Electrolytic footprints now match the KiCad pin-1 pad geometry without changing pitch, drill size, courtyard, or pin-2 geometry.

Validation

  • bun test tests/electrolytic.test.ts tests/kicad-parity/electrolytic_kicad_parity.test.ts
  • bun run build

@rushabhcodes rushabhcodes changed the title [codex] fix electrolytic KiCad pad parity fix electrolytic KiCad pad parity Jul 3, 2026
@rushabhcodes rushabhcodes marked this pull request as ready for review July 3, 2026 10:11
Copilot AI review requested due to automatic review settings July 3, 2026 10:11

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 changed the title fix electrolytic KiCad pad parity use square pin1 pad for electrolytic capacitor Jul 4, 2026

@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.

see my title change, kicad parity isn't a goal, just a way to check results

@seveibar seveibar merged commit 638808c into tscircuit:main Jul 4, 2026
6 checks passed
@tscircuitbot

Copy link
Copy Markdown
Contributor

Thank you for your contribution! 🎉

PR Rating:
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

4 participants