diff --git a/ergogen/footprints/jst_battery_connector.js b/ergogen/footprints/jst_battery_connector.js index 52ef58a..e1274e0 100644 --- a/ergogen/footprints/jst_battery_connector.js +++ b/ergogen/footprints/jst_battery_connector.js @@ -77,9 +77,9 @@ module.exports = { (fp_line (start 3.45 8.5) (end 3.45 -1.85) (width 0.05) (layer "F.CrtYd")) ` const front_silkscreen = ` - (fp_line (start 1.5 4.375) (end 0.5 4.375) (width 0.1) (layer "F.SilkS")) (fp_line (start -1.5 4.375) (end -0.5 4.375) (width 0.1) (layer "F.SilkS")) - (fp_line (start -1 3.875) (end -1 4.875) (width 0.1) (layer "F.SilkS")) + (fp_line (start 1.5 4.375) (end 0.5 4.375) (width 0.1) (layer "F.SilkS")) + (fp_line (start 1 3.875) (end 1 4.875) (width 0.1) (layer "F.SilkS")) (fp_line (start -2.06 -1.46) (end -3.06 -1.46) (width 0.12) (layer "F.SilkS")) (fp_line (start -3.06 -1.46) (end -3.06 -0.46) (width 0.12) (layer "F.SilkS")) (fp_line (start 2.14 -1.46) (end 3.06 -1.46) (width 0.12) (layer "F.SilkS")) @@ -106,9 +106,9 @@ module.exports = { (fp_line (start 3.45 8.5) (end 3.45 -1.85) (width 0.05) (layer "B.CrtYd")) ` const back_silkscreen = ` - (fp_line (start -1.5 4.375) (end -0.5 4.375) (width 0.1) (layer "B.SilkS")) (fp_line (start 1.5 4.375) (end 0.5 4.375) (width 0.1) (layer "B.SilkS")) - (fp_line (start 1 3.875) (end 1 4.875) (width 0.1) (layer "B.SilkS")) + (fp_line (start -1.5 4.375) (end -0.5 4.375) (width 0.1) (layer "B.SilkS")) + (fp_line (start -1 3.875) (end -1 4.875) (width 0.1) (layer "B.SilkS")) (fp_line (start -2.06 -1.46) (end -3.06 -1.46) (width 0.12) (layer "B.SilkS")) (fp_line (start -3.06 -1.46) (end -3.06 -0.46) (width 0.12) (layer "B.SilkS")) (fp_line (start 2.14 -1.46) (end 3.06 -1.46) (width 0.12) (layer "B.SilkS")) @@ -119,12 +119,12 @@ module.exports = { (fp_line (start 3.06 6.36) (end 3.06 5.36) (width 0.12) (layer "B.SilkS")) ` const front_pads = ` - (pad 1 thru_hole roundrect (at -1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.208333) ${p.BAT_P.str}) - (pad 2 thru_hole oval (at 1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") ${p.BAT_N.str}) + (pad 1 thru_hole roundrect (at -1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.20) ${p.BAT_N.str}) + (pad 2 thru_hole oval (at 1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") ${p.BAT_P.str}) ` const back_pads = ` - (pad 1 thru_hole roundrect (at 1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.208333) ${p.BAT_P.str}) - (pad 2 thru_hole oval (at -1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") ${p.BAT_N.str}) + (pad 1 thru_hole roundrect (at 1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.20) ${p.BAT_N.str}) + (pad 2 thru_hole oval (at -1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") ${p.BAT_P.str}) ` const reversible_pads = ` (pad 11 thru_hole oval (at -1 0 ${p.rot}) (size 1.2 1.75) (drill 0.75) (layers "*.Cu" "*.Mask") ${local_nets[0].str}) @@ -189,7 +189,7 @@ module.exports = { (width 0)) ) ${local_nets[1]}) - (pad 1 smd custom (at -1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "F.Cu" "F.Mask") ${p.BAT_N.str} + (pad 1 smd custom (at -1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "F.Cu" "F.Mask") ${p.BAT_P.str} (clearance 0.1) (zone_connect 0) (options (clearance outline) (anchor rect)) (primitives @@ -203,7 +203,7 @@ module.exports = { ) (width 0)) ) ) - (pad 1 smd custom (at 1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "B.Cu" "B.Mask") ${p.BAT_N.str} + (pad 1 smd custom (at 1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "B.Cu" "B.Mask") ${p.BAT_P.str} (clearance 0.1) (zone_connect 0) (options (clearance outline) (anchor rect)) (primitives @@ -217,7 +217,7 @@ module.exports = { ) (width 0)) ) ) - (pad 2 smd custom (at -1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "B.Cu" "B.Mask") ${p.BAT_P.str} + (pad 2 smd custom (at -1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "B.Cu" "B.Mask") ${p.BAT_N.str} (clearance 0.1) (zone_connect 0) (options (clearance outline) (anchor rect)) (primitives @@ -231,7 +231,7 @@ module.exports = { ) (width 0)) ) ) - (pad 2 smd custom (at 1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "F.Cu" "F.Mask") ${p.BAT_P.str} + (pad 2 smd custom (at 1 2.816 ${180 + p.rot}) (size 1.2 0.5) (layers "F.Cu" "F.Mask") ${p.BAT_N.str} (clearance 0.1) (zone_connect 0) (options (clearance outline) (anchor rect)) (primitives