1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-07-01 03:18:54 +03:00

atusb/cam: updated CAM process for new board

- cam/Makefile: added "spool" target
- cam/pcb.pl: removed rotation
- cam/pcb.pl: updated board outline (now it's just a rectangle)
- cam/pcb.pl: updated step sizes
This commit is contained in:
Werner Almesberger 2010-12-02 23:27:16 -03:00
parent fb2694116a
commit 876e12b0a9
2 changed files with 11 additions and 19 deletions

View File

@ -1,4 +1,9 @@
.PHONY: pcb
DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
.PHONY: pcb spool
pcb:
./doit >job
spool:
PORT=/dev/ttyUSB0 $(DIR)/spool/spool job

View File

@ -30,7 +30,7 @@ sub cut
while (@_) {
$x = shift @_;
$y = shift @_;
($x, $y) = (-$y, $x);
# ($x, $y) = (-$y, $x);
$x += $x0;
$y += $y0;
print "$x $y $z\n";
@ -42,22 +42,9 @@ sub one
{
&cut(
&mil( 0), &mil( 0),
&mil( 0), &mil(620),
&mil( 810), &mil(620),
&mil( 850) , &mil(580),
&mil( 890), &mil(620),
&mil(1300), &mil(620),
&mil(1490), &mil(430),
&mil(1630), &mil(430),
&mil(1630), &mil(360),
&mil(1850), &mil(360),
&mil(1850), &mil(430),
&mil(2150), &mil(430),
&mil(2150), &mil(-70),
&mil( 890), &mil(-70),
&mil( 890), &mil( 0),
&mil( 850), &mil( 40),
&mil( 810), &mil( 0),
&mil( 0), &mil(640),
&mil(1305), &mil(640),
&mil(1305), &mil( 0),
&mil( 0), &mil( 0));
}
@ -65,5 +52,5 @@ sub one
$z = -0.8;
# x: corner offset, compensation for rotation, array position
# y: corner offet
&orig(5+16+22*3, 5)
&orig(25+36*1, 2+17*0)
&one;