feat: apply delta x and delta y from transformations.csv (#177)

This commit is contained in:
Dewalddp
2024-11-19 14:04:16 +02:00
committed by GitHub
parent ea200f23dd
commit be93f52882
+4
View File
@@ -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)