Skip to content

Commit

Permalink
fix the trace width unit from CJ to SES
Browse files Browse the repository at this point in the history
  • Loading branch information
imrishabh18 committed Mar 10, 2025
1 parent 76325dd commit 612eae3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function createWire(opts: {
return {
path: {
layer: opts.layer === "top" ? "F.Cu" : "B.Cu",
width: opts.widthMm * 1000,
width: opts.widthMm,
coordinates: [],
},
net: opts.netName,
Expand Down Expand Up @@ -89,7 +89,7 @@ export function processPcbTraces(
// Start new wire on new layer
currentWire = createWire({
layer: point.layer,
widthMm: point.width,
widthMm: point.width * CJ_TO_DSN_SCALE,
netName,
})

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ test("converts nets and wires", () => {
expect(session.routes.network_out.nets[0].wires).toHaveLength(1)
expect(session.routes.network_out.nets[0].wires[0].path).toEqual({
layer: "F.Cu",
width: 200,
width: 2000,
coordinates: [10000, 20000, 30000, 40000],
})
})

0 comments on commit 612eae3

Please sign in to comment.