summaryrefslogtreecommitdiff
path: root/coil_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'coil_gen.py')
-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