Skip to content

fix(quad): bound corner silkscreen arms to prevent pad overlap on narrow variants - #808

Open
rudra496 wants to merge 1 commit into
tscircuit:mainfrom
rudra496:fix/quad-corner-silkscreen-clearance
Open

fix(quad): bound corner silkscreen arms to prevent pad overlap on narrow variants#808
rudra496 wants to merge 1 commit into
tscircuit:mainfrom
rudra496:fix/quad-corner-silkscreen-clearance

Conversation

@rudra496

Copy link
Copy Markdown

Summary

Fixes #734.

Previously, corner silkscreen paths on quad packages were assigned a fixed arm length (`csz = pw * 2`) from `(±w/2, ±h/2)`. On narrow-body variants (such as `tqfp32_w7` and `tqfp48_w7`), the inward arms crossed through the outermost pad copper, resulting in negative silk-to-pad clearance.

Changes

  1. Dynamic Corner Arm Bounding: Computed distance from the corner origin to outermost pad bounds along both horizontal and vertical axes (`availX`, `availY`), capping `csz` to maintain IPC silk-to-pad clearance in `src/fn/quad.ts`.
  2. Unit Tests: Added `tests/tqfp-narrow-body-silkscreen.test.ts` verifying that corner silkscreen arms on `tqfp32_w7` do not intersect outermost pads.

Verification

  • `bun test tests/tqfp-narrow-body-silkscreen.test.ts` (1/1 passing).

…row variants

Fixes tscircuit#734 by calculating distance to outermost pads along horizontal and vertical sides, bounding corner silkscreen arm length to ensure positive silk-to-pad clearance.
Copilot AI lite review requested due to automatic review settings August 15, 2026 21:12
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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.

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.

quad corner silkscreen is drawn over the pads on narrow-body variants (tqfp32_w7, tqfp48_w7)

2 participants