-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDeerhornTop_darrin.rb
executable file
·122 lines (101 loc) · 1.8 KB
/
DeerhornTop_darrin.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
require './PlumPott.rb'
require './Okuda.rb'
$bitwidth = 2.0/25.4
$halfwidth = $bitwidth/2
class Deerorg < PlumPott
MARJ = 0.05 #0.25
@@numero = 1
def initialize(starx, stary)
@width = 6
@heigh = $aoxo_switch
@@lipp = 0 #0.1 #was lipp zero
@zstep = 4
@dzary = 0
super(starx, stary)
end
def dy(y)
return @stary-y
end
def dx(x)
return @curxo+x
end
def a_screw(x,y)
looscrew(x,y)
end
def a_ground(x,y)
drillus(x,y,0,-@depth)
end
def a_johnson(x,y)
johnson(x,y)
end
def a_psalpot(x,y)
alpspot(x,y,17)
end
def a_trimcap(x,y)
pipe(x,y,0.06,0,-@depth)
tubo(x,y,0.27,0,-0.44,4)
end
def SMTLED(x,y)
pipe(x,y,3.3/32,0,-@depth)
end
def a_dwitch(x,y)
swdpdt(x,y,17)
end
def syck
shallot(dx(0),dy(-0.85),1)
a_trimcap(dx(5.234161),dy(-1.552574))
shallot(dx(6),dy(-0.85),-1)
end
def seck
shallot(dx(0),dy(0),1)
a_trimcap(dx(5.234161),dy(-0.702574))
shallot(dx(6),dy(0),-1)
end
def surck
shallot(dx(0),dy(0.85),1)
a_trimcap(dx(5.234161),dy(0.147426))
shallot(dx(6),dy(0.85),-1)
end
def boxo()
@curxo += MARJ
if (@heigh==2) then
#organoPHORM($seck_horn,dx(0),dy(0),1)
seck
elsif (@@numero == 1) then
#organoPHORM($syck_horn,dx(0),dy(0),1)
syck
else
#organoPHORM($surck_horn,dx(0),dy(0),1)
surck
end
@@numero += 1
@@numero %= 2
@curxo += @width /2
@curxo += @width /2
@curxo += MARJ
return @curxo
end
def numerize
unless ARGV[2].nil? then @@numero = Integer(ARGV[2]) end
unless ARGV[3].nil? then @@numero = Integer(ARGV[3]) end
end
def ducatop
end
def ducabot
end
def duxo
@curxo += $bitwidth
return @curxo
end
end
$rimmer = 0.01
if ARGV[2].nil? then
$aoxo_switch = 2
else
$aoxo_switch = 3.7
end
unless ARGV[3].nil? then
nummerat(Deerorg, Integer(ARGV[3]))
else
stutterat(Deerorg)
end#stutterat(Deerorg)