Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Ring pad support inspired by wuerth electronics smd mounting hardware #351

Merged
merged 39 commits into from
Oct 5, 2019
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
1829761
copper only ring pad prototype
poeschlr May 8, 2019
08f04bf
Workaround for mask margin bugs
poeschlr May 8, 2019
43d3007
Workaround for single paste zone (kicad bug)
poeschlr May 8, 2019
e7a2549
add interface to rotate a vector2d around a given origin
poeschlr May 8, 2019
64d2f17
handle solder paste parameters
poeschlr May 8, 2019
98603c8
use rotate function instead of calculating coordinates
poeschlr May 8, 2019
684e006
added polar coordinate handling to Vector2D
poeschlr May 9, 2019
b1c455b
extended arc interface
poeschlr May 9, 2019
a64340f
ensure -0 is not created by float formater
poeschlr May 10, 2019
19f3de8
More arc testcases
poeschlr May 10, 2019
03bd06c
ode style
poeschlr May 10, 2019
7a50885
python 2 compatibility
poeschlr May 10, 2019
12bc2f6
add rotation interface for basic nodes
poeschlr May 10, 2019
53b59eb
Add translation and intersection
poeschlr May 11, 2019
e008043
Add docstrings
poeschlr May 11, 2019
01a5f19
intersection supports arcs
poeschlr May 11, 2019
2957b34
cut line implemented
poeschlr May 11, 2019
244847b
Introduced geometric base clases for lines, circles and arcs
poeschlr May 12, 2019
6719d3f
Add cut functionallity to arcs
poeschlr May 12, 2019
f942451
arc pad primitive used for paste parts of ring pad
poeschlr May 13, 2019
4ddd2c3
Finish paste pad handling for ring pads
poeschlr May 14, 2019
3dca632
cleanups and docu
poeschlr May 14, 2019
3bda5f9
Correct overlap, paste radius and arc width calculation
poeschlr May 25, 2019
de61209
correct handling of paste to paste clearance
poeschlr May 26, 2019
c159b56
Add commandline interface script for generating ring pads
poeschlr May 26, 2019
f2a46bb
Add wuerth smt mouniting hardware with inner through hole
poeschlr May 26, 2019
ac37b7f
klc fixes
poeschlr May 26, 2019
191f472
fix ring pad paste for 2 zones
poeschlr May 27, 2019
3c2728b
Add M1.6 (including blind hole) and new naming convention
poeschlr May 27, 2019
9e7cb69
add reverse type
poeschlr May 27, 2019
f127438
add snap rivet version
poeschlr May 27, 2019
961ca20
script renamed to reflect the fact that it is generic
poeschlr May 28, 2019
23be404
add external thread version
poeschlr May 28, 2019
9f6bfe5
add maximum round radius to ring pad
poeschlr May 28, 2019
cb79753
handle 0 inner diameter
poeschlr May 28, 2019
6385473
add non npth version
poeschlr May 28, 2019
e12a59c
rename script folder to reflect the generic content
poeschlr May 29, 2019
a0706d7
Improved naming and description
poeschlr May 29, 2019
3244af2
typo in description
poeschlr Sep 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct handling of paste to paste clearance
  • Loading branch information
poeschlr committed May 26, 2019
commit de6120994dc4ad23a54b67c8fec5c4f82954b110
14 changes: 5 additions & 9 deletions KicadModTree/nodes/specialized/RingPad.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,8 @@ def _getStep(self, line_width):
return (self.width-line_width)/(required_arcs-1)

def _getArcPrimitives(self):
print(self.width)
line_width = self.width*self.round_radius_ratio*2
print(self.round_radius_ratio)
step = self._getStep(line_width)
print(line_width)
print(step)

r_inner = self.reference_arc.getRadius()-self.width/2+line_width/2
r_outer = self.reference_arc.getRadius()+self.width/2-line_width/2
Expand Down Expand Up @@ -315,11 +311,11 @@ def _initPasteSettings(self, **kwargs):
else:
self.paste_round_radius_radio = float(
kwargs.get('paste_round_radius_radio', 0.25))
self.paste_to_paste_clearance = float(
kwargs.get(
'pa0ste_to_paste_clearance',
-self.paste_width*self.solder_paste_margin*2
))

self.paste_to_paste_clearance = kwargs.get('paste_to_paste_clearance')
if self.paste_to_paste_clearance is None:
self.paste_to_paste_clearance = -self.solder_paste_margin

if self.paste_round_radius_radio <= 0:
raise ValueError('paste_round_radius_radio must be > 0')
if self.paste_to_paste_clearance <= 0:
Expand Down