summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-06-14 10:47:49 +0200
committerjaseg <git@jaseg.de>2023-06-14 10:47:49 +0200
commite349c2c08b4aa6be402a11fc9a4a350508415d7d (patch)
tree3078a5c6c29c0220ff524330604584f22ce59e47
parent96fde32c0bf10e7c60cb99b2722fba6093d5f944 (diff)
downloadgerbonara-e349c2c08b4aa6be402a11fc9a4a350508415d7d.tar.gz
gerbonara-e349c2c08b4aa6be402a11fc9a4a350508415d7d.tar.bz2
gerbonara-e349c2c08b4aa6be402a11fc9a4a350508415d7d.zip
WIP
-rw-r--r--coil_gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coil_gen.py b/coil_gen.py
index 758f3b6..642a77d 100644
--- a/coil_gen.py
+++ b/coil_gen.py
@@ -117,12 +117,12 @@ def generate(infile, outfile, polygon, start_angle, stop_radius, trace_width, cl
dma = dist(pa2, ma)
dmb = dist(pb1, mb)
- qa = dr_tot_a*dma/h
+ qa = dr_tot_a*dma/ha
dra = hypot(dr_tot_a, qa)
xea = xa2 + (cx - xa2) / dist((cx, cy), pa2) * dra
yea = ya2 + (cy - ya2) / dist((cx, cy), pa2) * dra
- qb = dr_tot_b*dmb/h
+ qb = dr_tot_b*dmb/hb
drb = hypot(dr_tot_b, qb)
xeb = xb1 + (cx - xb1) / dist((cx, cy), pb1) * drb
yeb = yb1 + (cy - yb1) / dist((cx, cy), pb1) * drb