Root/ants/cam/doit

Source at commit 04972bb2f65b1fc70a25b2f1fac96d65c9f0f726 created 8 years 11 months ago.
By Werner Almesberger, ants/cam: update for latest workpiece
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
7CAMEO=../../../cae-tools/cameo/cameo
8
9GEN=${1:-./pcb.pl}
10
11rdata="19.6 13.0 -56.2 19.6 53.1 -56.1 110.7 14.1 -56.2"
12rdate="15.9 13.1 -57.2 15.9 77.4 -57.1 120.8 15.1 -57.0"
13rdate="17.2 9.5 -57.0 21.5 76.2 -57.1 126.8 9.0 -56.9"
14rdata="8.1 11.2 -56.3 8.1 80.1 -56.1 117.2 12.8 -55.9"
15# lower Z by 0.3 mm relative to average (-56.1)
16Z=-56.6
17
18rect=`$RECT $rdata | awk '{$3 = ""; print}'`
19
20$GEN |
21  awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
22  $CAMEO -d 0.4445 |
23  $ALIGN 0 1 $rect |
24    # angle, reference (lower left corner), rect
25  $GP2RML 2 0.5 0.5
26    # clearance, xy speed, z speed
27# since everything is in the same plane, z clearance must be thickness plus
28# real clearance !
29

Archive Download this file



interactive