Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update relay model naming to follow KLC #341

Merged
merged 2 commits into from
Mar 11, 2020
Merged
Changes from all commits
Commits
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
16 changes: 8 additions & 8 deletions cadquery/FCAD_script_generator/Relay_THT/cq_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ def namedtuple_with_defaults(typename, field_names, default_values=()):

all_params = {

'Relay_1P1T_Panasonic_ADW11_FormA': Params( # ModelName
'Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT': Params( # ModelName
#
# https://www.panasonic-electric-works.com/pew/es/downloads/ds_dw_hl_en.pdf
#
modelName = 'Relay_1P1T_Panasonic_ADW11_FormA', # Model name
modelName = 'Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT', # Model name
pintype = 'tht', # Pin type, 'tht', 'smd', 'thtsmd' or 'tht_n'
L = 24, # Package length
W = 10, # Package width
L = -10, # Package length
W = 24, # Package width
H = 18.8, # Package height
A1 = 0.1, # Package board seperation
#rim_h = 0.7 # TODO: Improve the model by adding the correct rim
Expand All @@ -73,10 +73,10 @@ def namedtuple_with_defaults(typename, field_names, default_values=()):
# (15, -8.75, 2, 0.5)),
pin = (
(0.0, 0.0, 'round', 0.4),
(0.0, -7.5, 'round', 0.4),
(21, 0.0, 'rect', 0.8, 0.2),
(17.5, -7.5, 'rect', 0.8, 0.2)), # Pin placement
pin1corner = (-1.5, -8.75), # Left up corner relationsship to pin 1
(7.5, 0.0, 'round', 0.4),
(0.0, 21, 'rect', 0.8, 0.2),
(7.5, 17.5, 'rect', 0.8, 0.2)), # Pin placement
pin1corner = (8.75, -1.5), # Left up corner relationsship to pin 1
pinpadh = 3.5, # Pin length, pad height
pinpadsize = 1.0, # Pin diameter or pad size
show_top = 0, # If top should be visible or not
Expand Down