From 71075ec7050b7f39d1124ff03cfa62a35e67553c Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 13 Jul 2012 23:01:03 -0300 Subject: [PATCH] modules/pads-array.fpd: added measurements; enabled more pads types We now also generate arrays of 2-10 60x60mil, 80x80mil, and 60x120mil pads, all with a 100 mil spacing. --- modules/HIERARCHY | 69 ++++++++++++++++++++++++++++++------------ modules/pads-array.fpd | 12 +++++--- 2 files changed, 58 insertions(+), 23 deletions(-) diff --git a/modules/HIERARCHY b/modules/HIERARCHY index 33af970..9956f3e 100644 --- a/modules/HIERARCHY +++ b/modules/HIERARCHY @@ -19,25 +19,56 @@ Connector PAD_R_120x60 PAD_S_150x150 Array - PAD_2mm_2x50mil - PAD_2mm_3x50mil - PAD_2mm_4x50mil - PAD_2mm_5x50mil - PAD_2mm_6x50mil - PAD_2mm_7x50mil - PAD_2mm_8x50mil - PAD_2mm_9x50mil - PAD_2mm_10x50mil - PAD_2mm_11x50mil - PAD_2mm_12x50mil - PAD_2mm_13x50mil - PAD_2mm_14x50mil - PAD_2mm_15x50mil - PAD_2mm_16x50mil - PAD_2mm_17x50mil - PAD_2mm_18x50mil - PAD_2mm_19x50mil - PAD_2mm_20x50mil + 2mm + PAD_2mm_2x50mil + PAD_2mm_3x50mil + PAD_2mm_4x50mil + PAD_2mm_5x50mil + PAD_2mm_6x50mil + PAD_2mm_7x50mil + PAD_2mm_8x50mil + PAD_2mm_9x50mil + PAD_2mm_10x50mil + PAD_2mm_11x50mil + PAD_2mm_12x50mil + PAD_2mm_13x50mil + PAD_2mm_14x50mil + PAD_2mm_15x50mil + PAD_2mm_16x50mil + PAD_2mm_17x50mil + PAD_2mm_18x50mil + PAD_2mm_19x50mil + PAD_2mm_20x50mil + 60x60mil + PAD_60x60_2x100mil + PAD_60x60_3x100mil + PAD_60x60_4x100mil + PAD_60x60_5x100mil + PAD_60x60_6x100mil + PAD_60x60_7x100mil + PAD_60x60_8x100mil + PAD_60x60_9x100mil + PAD_60x60_10x100mil + 80x80mil + PAD_80x80_2x100mil + PAD_80x80_3x100mil + PAD_80x80_4x100mil + PAD_80x80_5x100mil + PAD_80x80_6x100mil + PAD_80x80_7x100mil + PAD_80x80_8x100mil + PAD_80x80_9x100mil + PAD_80x80_10x100mil + 120x60mil + PAD_120x60_2x100mil + PAD_120x60_3x100mil + PAD_120x60_4x100mil + PAD_120x60_5x100mil + PAD_120x60_6x100mil + PAD_120x60_7x100mil + PAD_120x60_8x100mil + PAD_120x60_9x100mil + PAD_120x60_10x100mil SMT 8:10-SOCKET-RA miniUSB_B diff --git a/modules/pads-array.fpd b/modules/pads-array.fpd index a44e518..ca2d1db 100644 --- a/modules/pads-array.fpd +++ b/modules/pads-array.fpd @@ -7,7 +7,7 @@ frame pad { } package "PAD_${name}_${N}x$e" -unit mm +unit auto table { name, x, y } @@ -19,9 +19,9 @@ table table { ?name, e, Nmax } { "2mm", 50mil, 20 } - { "60x60", 0mm, 1 } - { "80x80", 0mm, 1 } - { "120x60", 0mm, 1 } + { "60x60", 100mil, 10 } + { "80x80", 100mil, 10 } + { "120x60", 100mil, 10 } loop N = 2, Nmax @@ -29,3 +29,7 @@ loop n = 1, N __0: vec @(0mm, e*(n-1)) frame pad . +measx pad.__1 -> pad.__0 -1mm +measy pad.__1 -> pad.__0 1mm +measy __0 >> __0 -x/2-2mm +measy __0 -> __0 -x/2-1mm