From be93f528827ead2ac4c7e2e2728baf6058615d43 Mon Sep 17 00:00:00 2001 From: Dewalddp Date: Tue, 19 Nov 2024 14:04:16 +0200 Subject: [PATCH] feat: apply delta x and delta y from transformations.csv (#177) --- plugins/process.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/process.py b/plugins/process.py index 803e2b3..bdd8afb 100644 --- a/plugins/process.py +++ b/plugins/process.py @@ -193,6 +193,10 @@ class ProcessManager: # position offset needs to take rotation into account pos_offset = self._get_position_offset_from_footprint(footprint) + if auto_translate: + pos_offset_db = self._get_position_offset_from_db(footprint_name) + pos_offset = (pos_offset[0] + pos_offset_db[0], pos_offset[1] + pos_offset_db[1]) + rsin = math.sin(rotation / 180 * math.pi) rcos = math.cos(rotation / 180 * math.pi)