From af3458b1e22f92f51606cff8f771d03551af4cc0 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 29 Apr 2023 13:52:04 +0200 Subject: Fix failing kicad tests --- gerbonara/cad/kicad/footprints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gerbonara/cad/kicad/footprints.py') 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. -- cgit