Skip to content

Commit

Permalink
Do not mirror bottom components positions for JLC PCB
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Aug 12, 2020
1 parent e0e846f commit 6b7e741
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kikit/fab/jlcpcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ def modulePosition(module, placeOffset, compensation):
return pos

def moduleX(module, placeOffset, compensation):
pos = modulePosition(module, placeOffset, compensation)
if module.GetLayer() == pcbnew.B_Cu:
return -toMm(pos[0])
return toMm(pos[0])
# JLC PCB does not require mirrored X when the components are on the bottom side
return toMm(modulePosition(module, placeOffset, compensation)[0])

def moduleY(module, placeOffset, compensation):
return -toMm(modulePosition(module, placeOffset, compensation)[1])
Expand Down

0 comments on commit 6b7e741

Please sign in to comment.