Date:2012-01-18 15:45:34 (8 years 9 months ago)
Author:Werner Almesberger
Commit:7f0d0d6fba4112857c6d5dc91c2214c9d239f1c5
Message:m1/xbrd/xbrd.fpd: M1r4 extension board draft (top view, WIP)

Files: m1/xbrd/xbrd.fpd (1 diff)

Change Details

m1/xbrd/xbrd.fpd
1/* MACHINE-GENERATED ! */
2
3frame top {
4    __0: vec @(-B/2, 0mm)
5    __1: vec @(B/2, 0mm)
6    __2: vec __0(0mm, HL/2)
7    __4: vec __0(0mm, -HL/2)
8    __5: vec .(-HW/2, 0mm)
9    __10: vec .(-CB, -CL)
10    __6: vec __1(0mm, HL/2)
11    __7: vec .(HW/2, 0mm)
12    __11: vec .(CF, CR)
13    rect __10 . w
14    __8: vec __1(0mm, -HL/2)
15    __9: vec .(-HW/2, 0mm)
16    rect . __7 w
17    __3: vec __2(HW/2, 0mm)
18    rect __5 . w
19    __12: vec __2(-HW/2, 0mm)
20    __13: vec .(-CB, CR)
21    __14: vec __1(FB, 0mm)
22    __15: vec .(0mm, -fny)
23    __16: vec __14(FT, 0mm)
24    __17: vec .(0mm, fpy)
25    __18: vec __14(0mm, fpy)
26    line . __15 w
27    __19: vec __16(0mm, -fny)
28    line __17 . w
29}
30
31package "xbrd"
32unit mm
33
34table
35    { name, top }
36    { "Top", 1 }
37
38table
39    { B, CB, CF, CL, CR }
40    { 45mm, 25mm, 10mm, 5mm, 15mm }
41
42table
43    { HL, HW }
44    { 9*100mil, 2*100mil }
45
46table
47    { FB, FT }
48    { 15mm, 3mm }
49
50table
51    { fpy, fny }
52    { 30mm, 20mm }
53
54table
55    { w, s }
56    { 0.5mm, 5mm }
57
58frame top @
59measy "CL = " top.__10 >> top.__5 s
60measx "CF = " top.__7 >> top.__11 CR+s
61measx "B = " top.__0 >> top.__1 HL/2+CR+2*s
62measy top.__10 >> top.__0 2*s
63measy "HL = " top.__9 >> top.__6 s
64measx top.__6 >> top.__11 CR+2*s
65measx top.__10 >> top.__11 HL+CL+CR+3*s
66measy top.__10 >> top.__11 3*s
67measy "CR = " top.__12 >> top.__13 CB+s
68measy top.__0 >> top.__13 CB+HW/2+2*s
69measx "CB = " top.__13 >> top.__12 s
70measx top.__13 >> top.__2 2*s
71measx "HW = " top.__5 >> top.__3 -s
72measx "FW = " top.__15 >> top.__19 -2*s
73measx "FB = " top.__1 >> top.__14 -fny-2*s
74measx top.__1 >> top.__16 -fny-3*s
75measx top.__11 >> top.__15 -CR-HL/2-fny-s

Archive Download the corresponding diff file

Branches:
master



interactive