Root/atusd/cam/doit

Source at commit eb6f066bbd7a194a28ad336f32ab59f945f5b906 created 13 years 6 months ago.
By Werner Almesberger, atusd/cam/: CAM data for cutting the PCB.
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"
11rdata="12.4 9.8 -55.6 125.5 9.4 -55.4 12.9 83.6 -55.7"
12# we need quite a large Z adjustment due to the table's vertical flexibility
13Z=-55.80
14
15rect=`$RECT $rdata | awk '{$3 = ""; print}'`
16
17$GEN |
18  awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
19  $ALIGN 0 1 $rect |
20    # angle, reference (lower left corner), rect
21  $GP2RML 1.5 0.1 0.1
22    # clearance, xy speed, z speed
23

Archive Download this file



interactive