Root/cam/doit

1#!/bin/sh -e
2DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
3RECT=$DIR/rect/rect
4ALIGN=$DIR/align/align
5ZMAP=$DIR/zmap/zmap
6GP2RML=$DIR/gp2rml/gp2rml
7
8GEN=${1:-./pcb.pl}
9
10rdata="17.8 8.9 -55.7 72.0 9.6 -55.3 17.8 68.5 -55.5"
11# we need quite a large Z adjustment due to the table's vertical flexibility
12Z=-55.40
13
14rect=`$RECT $rdata | awk '{$3 = ""; print}'`
15
16$GEN |
17  awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
18  $ALIGN 0 1 $rect |
19    # angle, reference (lower left corner), rect
20  $GP2RML 1.5 0.1 0.1
21    # clearance, xy speed, z speed
22

Archive Download this file

Branches:
master



interactive