Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
f214a576
Commit
f214a576
authored
Feb 12, 2014
by
Nick Østergaard
Committed by
jean-pierre charras
Feb 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong numbering in the QFP footprint wizard python script
parent
b9544786
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
qfp_wizard.py
pcbnew/scripting/plugins/qfp_wizard.py
+6
-2
No files found.
pcbnew/scripting/plugins/qfp_wizard.py
View file @
f214a576
...
...
@@ -109,18 +109,22 @@ class QFPWizard(pcbnew.FootprintWizardPlugin):
pad_size
=
pad_size_left_right
pad_pos_x
=
-
(
pad_horizontal_pitch
/
2
)
pad_pos_y
=
(
cur_pad
%
(
num_pads
/
4
))
*
pad_pitch
-
(
side_length
/
2
)
if
side
==
2
:
pad_pos_x
=
-
pad_pos_x
pad_pos_y
=
-
pad_pos_y
pad_pos_y
=
(
cur_pad
%
(
num_pads
/
4
))
*
pad_pitch
-
(
side_length
/
2
)
else
:
pad_size
=
pad_size_bottom_top
pad_pos_x
=
(
cur_pad
%
(
num_pads
/
4
))
*
pad_pitch
-
(
side_length
/
2
)
pad_pos_y
=
-
(
pad_vertical_pitch
/
2
)
if
side
==
1
:
pad_pos_y
=
-
pad_pos_y
else
:
pad_pos_x
=
-
pad_pos_x
pad_pos
=
pcbnew
.
wxPoint
(
pad_pos_x
,
pad_pos_y
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment