Fix wrong numbering in the QFP footprint wizard python script
This commit is contained in:
parent
b954478621
commit
f214a57629
|
@ -109,18 +109,22 @@ class QFPWizard(pcbnew.FootprintWizardPlugin):
|
||||||
pad_size = pad_size_left_right
|
pad_size = pad_size_left_right
|
||||||
|
|
||||||
pad_pos_x = -(pad_horizontal_pitch / 2)
|
pad_pos_x = -(pad_horizontal_pitch / 2)
|
||||||
|
pad_pos_y = (cur_pad % (num_pads / 4)) * pad_pitch - (side_length / 2)
|
||||||
|
|
||||||
if side == 2:
|
if side == 2:
|
||||||
pad_pos_x = -pad_pos_x
|
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:
|
else:
|
||||||
pad_size = pad_size_bottom_top
|
pad_size = pad_size_bottom_top
|
||||||
|
|
||||||
pad_pos_x = (cur_pad % (num_pads / 4)) * pad_pitch - (side_length / 2)
|
pad_pos_x = (cur_pad % (num_pads / 4)) * pad_pitch - (side_length / 2)
|
||||||
|
|
||||||
pad_pos_y = -(pad_vertical_pitch / 2)
|
pad_pos_y = -(pad_vertical_pitch / 2)
|
||||||
|
|
||||||
if side == 1:
|
if side == 1:
|
||||||
pad_pos_y = -pad_pos_y
|
pad_pos_y = -pad_pos_y
|
||||||
|
else:
|
||||||
|
pad_pos_x = -pad_pos_x
|
||||||
|
|
||||||
pad_pos = pcbnew.wxPoint(pad_pos_x, pad_pos_y)
|
pad_pos = pcbnew.wxPoint(pad_pos_x, pad_pos_y)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue