Root/atusd/cam/doit

Source at commit 93f0f403a78b9f3451bbbb8707dbbb36007a1612 created 9 years 6 months ago.
By Werner Almesberger, New atusd errata and a few small CAM updates.
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 2 0.2 0.2
22    # clearance, xy speed, z speed
23

Archive Download this file



interactive