diff --git a/src/footprints/trrs.js b/src/footprints/trrs.js index 7ec90ce..09863f5 100644 --- a/src/footprints/trrs.js +++ b/src/footprints/trrs.js @@ -48,10 +48,13 @@ module.exports = { (fp_line (start 0.75 12.1) (end -5.35 12.1) (layer Dwgs.User) (width 0.15)) (fp_line (start 0.75 0) (end -5.35 0) (layer Dwgs.User) (width 0.15)) - ${''/* stabilizers */} - (pad "" np_thru_hole circle (at -2.3 8.6) (size 1.5 1.5) (drill 1.5) (layers *.Cu *.Mask)) - (pad "" np_thru_hole circle (at -2.3 1.6) (size 1.5 1.5) (drill 1.5) (layers *.Cu *.Mask)) ` + function stabilizers(def_pos) { + return ` + (pad "" np_thru_hole circle (at ${def_pos} 8.6) (size 1.5 1.5) (drill 1.5) (layers *.Cu *.Mask)) + (pad "" np_thru_hole circle (at ${def_pos} 1.6) (size 1.5 1.5) (drill 1.5) (layers *.Cu *.Mask)) + ` + } function pins(def_neg, def_pos) { return ` (pad 1 thru_hole oval (at ${def_neg} 11.3 ${p.rot}) (size 1.6 2.2) (drill oval 0.9 1.5) (layers *.Cu *.Mask) ${p.net.A.str}) @@ -63,18 +66,22 @@ module.exports = { if(p.param.reverse & p.param.symmetric) { return ` ${standard} + ${stabilizers('-2.3')} ${pins('0', '-4.6')} ${pins('-4.6', '0')}) ` } else if(p.param.reverse) { return ` ${standard} + ${stabilizers('-2.3')} + ${stabilizers('2.3')} ${pins('-4.6', '0')} ${pins('4.6', '0')}) ` } else { return ` ${standard} + ${stabilizers('-2.3')} ${pins('-4.6', '0')}) ` }