2 * Copyright © 2012 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 element_start("ap.10g");
25 real hole_spacing = 9.7;
26 real hole_diameter = 1.5;
27 real hole_x = hole_spacing/2;
28 real hole_y = edge_y - 1.9;
30 real v_pad_width = 1.25;
31 real v_pad_height = 2.10;
33 real v_pad_x = 11.26 / 2 - v_pad_width / 2;
34 real v_pad_y = 3.65 - 1.25 - v_pad_height / 2;
36 real h_pad_width = 2.10;
37 real h_pad_height = 1.25;
39 real h_pad_x = 9.1 / 2 - h_pad_width / 2;
40 real h_pad_y = 0 + h_pad_height / 2;
42 real feed_width = 2.1;
43 real feed_height = 1.25;
44 real feed_space = 0.5;
46 real feed_y = feed_height / 2;
48 real line_width = 1.29;
51 real line_y = feed_y + line_height/2;
52 real line_space = feed_space;
54 /* Center point is at the "top" of the feed pad */
56 /* Draw a line at the edge of the board for alignment */
58 real mark_y = -edge_y + mils1002mm(line_thickness) / 2;
60 line(-hole_x, mark_y, hole_x, mark_y);
63 pin_mm_options(-hole_x, -hole_y, hole_diameter, process_ring, "2", "2", "via");
64 pin_mm_options( hole_x, -hole_y, hole_diameter, process_ring, "2", "2", "via");
68 pad_mm_space(-v_pad_x, -v_pad_y, v_pad_width, v_pad_height, 0, "2", "2");
69 pad_mm_space( v_pad_x, -v_pad_y, v_pad_width, v_pad_height, 0, "2", "2");
73 pad_mm_space(-h_pad_x, h_pad_y, h_pad_width, h_pad_height, 0, "2", "2");
74 pad_mm_space( h_pad_x, h_pad_y, h_pad_width, h_pad_height, 0, "2", "2");
78 pad_mm_space (feed_x, feed_y, feed_width, feed_height, feed_space, "1", "1");
82 pad_mm_space (line_x, line_y, line_width, line_height, line_space, "1", "1");