2010-11-01 04:59:35 +02:00
|
|
|
#!/bin/sh -e
|
|
|
|
DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
|
|
|
|
RECT=$DIR/rect/rect
|
|
|
|
ALIGN=$DIR/align/align
|
|
|
|
ZMAP=$DIR/zmap/zmap
|
|
|
|
GP2RML=$DIR/gp2rml/gp2rml
|
2010-11-02 01:14:43 +02:00
|
|
|
CAMEO=../../../cae-tools/cameo/cameo
|
2010-11-01 04:59:35 +02:00
|
|
|
|
|
|
|
GEN=${1:-./pcb.pl}
|
|
|
|
|
|
|
|
rdata="19.6 13.0 -56.2 19.6 53.1 -56.1 110.7 14.1 -56.2"
|
|
|
|
rdate="15.9 13.1 -57.2 15.9 77.4 -57.1 120.8 15.1 -57.0"
|
2010-11-03 15:12:51 +02:00
|
|
|
rdate="17.2 9.5 -57.0 21.5 76.2 -57.1 126.8 9.0 -56.9"
|
|
|
|
# lower Z by 0.5 mm relative to highest point (-56.8)
|
|
|
|
Z=-57.3
|
2010-11-01 04:59:35 +02:00
|
|
|
|
|
|
|
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
|
|
|
|
|
|
|
|
$GEN |
|
|
|
|
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
|
2010-11-02 01:14:43 +02:00
|
|
|
$CAMEO -d 0.4445 |
|
2010-11-01 04:59:35 +02:00
|
|
|
$ALIGN 0 1 $rect |
|
|
|
|
# angle, reference (lower left corner), rect
|
|
|
|
$GP2RML 2 0.5 0.5
|
|
|
|
# clearance, xy speed, z speed
|
|
|
|
# since everything is in the same plane, z clearance must be thickness plus
|
|
|
|
# real clearance !
|