diff options
author | jaseg <git@jaseg.de> | 2023-04-29 13:52:04 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-30 11:06:47 +0200 |
commit | af3458b1e22f92f51606cff8f771d03551af4cc0 (patch) | |
tree | 8a41abcc78aa8d358663d37a73b3044b83991a46 /gerbonara/cad/kicad/footprints.py | |
parent | 73a48f1dcb8bbe25221a5df952a36aec301b9f37 (diff) | |
download | gerbonara-af3458b1e22f92f51606cff8f771d03551af4cc0.tar.gz gerbonara-af3458b1e22f92f51606cff8f771d03551af4cc0.tar.bz2 gerbonara-af3458b1e22f92f51606cff8f771d03551af4cc0.zip |
Fix failing kicad tests
Diffstat (limited to 'gerbonara/cad/kicad/footprints.py')
-rw-r--r-- | gerbonara/cad/kicad/footprints.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/cad/kicad/footprints.py b/gerbonara/cad/kicad/footprints.py index d7ccc9f..ece7b53 100644 --- a/gerbonara/cad/kicad/footprints.py +++ b/gerbonara/cad/kicad/footprints.py @@ -404,7 +404,7 @@ class Pad: yield go.Flash(self.at.x+ox, self.at.y+oy, aperture, unit=MM) def aperture(self, margin=None): - rotation = -math.radians(self.at.rotation) + rotation = math.radians(self.at.rotation) margin = margin or 0 if self.shape == Atom.circle: @@ -437,7 +437,7 @@ class Pad: if dx != 0: x, y = y, x dy = dx - rotation -= math.pi/2 + rotation += math.pi/2 if margin <= 0: # Note: KiCad already uses MM units, so no conversion needed here. |