mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-04 23:15:19 +02:00
22 lines
547 B
Plaintext
22 lines
547 B
Plaintext
|
#!/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
|
||
|
|
||
|
GEN=${1:-./pcb.pl}
|
||
|
|
||
|
rdata="17.8 8.9 -55.7 72.0 9.6 -55.3 17.8 68.5 -55.5"
|
||
|
# we need quite a large Z adjustment due to the table's vertical flexibility
|
||
|
Z=-55.40
|
||
|
|
||
|
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
|
||
|
|
||
|
$GEN |
|
||
|
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
|
||
|
$ALIGN 0 1 $rect |
|
||
|
# angle, reference (lower left corner), rect
|
||
|
$GP2RML 1.5 0.1 0.1
|
||
|
# clearance, xy speed, z speed
|