Skip to content

Commit 07b7724

Browse files
committed
Fix drill hole alignment for RP2040 footprint
1 parent 2e51d62 commit 07b7724

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/convert-kicad-json-to-tscircuit-soup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export const convertKicadJsonToTsCircuitSoup = async (
269269
// x/y are the pad center; hole_offset_* positions the hole
270270
x: pad.at[0],
271271
y: -pad.at[1],
272-
hole_offset_x: rotOff.x,
272+
hole_offset_x: -rotOff.x,
273273
hole_offset_y: -rotOff.y,
274274
hole_diameter: pad.drill?.width!,
275275
rect_pad_width: width,
@@ -370,7 +370,7 @@ export const convertKicadJsonToTsCircuitSoup = async (
370370
// x/y are the pad center; hole_offset_* positions the hole
371371
x: hole.at[0],
372372
y: -hole.at[1],
373-
hole_offset_x: rotOff.x,
373+
hole_offset_x: -rotOff.x,
374374
hole_offset_y: -rotOff.y,
375375
hole_diameter: holeDiameter,
376376
rect_pad_width: isNinetyLike(rotation)
@@ -433,8 +433,8 @@ export const convertKicadJsonToTsCircuitSoup = async (
433433
pad_shape: "rect",
434434
x,
435435
y,
436-
hole_offset_x: rotOff.x,
437-
hole_offset_y: -rotOff.y,
436+
hole_offset_x: -rotOff.x,
437+
hole_offset_y: rotOff.y,
438438
hole_diameter: holeDiameter,
439439
rect_pad_width: width,
440440
rect_pad_height: height,

0 commit comments

Comments
 (0)