f7b52f6a317692d81c2d0024a34028b59124e0d9
[hw/altusmetrum] / packages / wire-ant.py
1 #!/usr/bin/python2
2 # Copyright 2014 by Bdale Garbee <bdale@gag.com>.  GPLv2
3 #
4 # Program to emit PCB footprint for edge-launch wire antenna
5 #
6
7 # dimensions in 1/100 mil from CONSMA003.062.pdf datasheet, modified to
8 # accomidate a wider range of new and surplus edge-launched SMA connectors
9 PinWidth =    6000      # the center pin
10 GndWidth =   15000      # the "side" pins for the gnd "wings" 
11 PinHeight =  15000
12 PinSpacing = PinWidth / 2 + 4000
13
14 import sys
15
16 print '# author: Bdale Garbee'
17 print '# email: bdale@gag.com'
18 print '# dist-license: GPL 2'
19 print '# use-license: unlimited'
20
21 print 'Element[0x0 "wire-ant" "" "" 0 0 0 0 0 0 0x0]'
22 print "("
23
24 print '   Pad[',\
25         (-PinSpacing - GndWidth/2), \
26         (GndWidth/2), \
27         (-PinSpacing - GndWidth/2), \
28         (PinHeight - GndWidth/2), \
29         (GndWidth), \
30         0, \
31         (GndWidth + 600), \
32         '"pin2"', '"2"', '"square,nopaste"]'
33 print '   Pad[',\
34         0, \
35         (PinWidth/2), \
36         0, \
37         (PinHeight - PinWidth/2), \
38         (PinWidth), \
39         0, \
40         (PinWidth + 600), \
41         '"pin1"', '"1"', '"square,nopaste"]'
42 print '   Pad[',\
43         (PinSpacing + GndWidth/2), \
44         (GndWidth/2), \
45         (PinSpacing + GndWidth/2), \
46         (PinHeight - GndWidth/2), \
47         (GndWidth), \
48         0, \
49         (GndWidth + 600), \
50         '"pin2"', '"2"', '"square,nopaste"]'
51
52 print ")"