-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgantryParams.m
More file actions
132 lines (116 loc) · 3.43 KB
/
Copy pathgantryParams.m
File metadata and controls
132 lines (116 loc) · 3.43 KB
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
123
124
125
126
127
128
129
130
131
132
% -------------------------------------------------------------------
% Generated by MATLAB on 19-Nov-2021 11:40:52
% MATLAB version: 9.11.0.1769968 (R2021b)
% -------------------------------------------------------------------
b = 5E-6;
color = struct;
color.orange = [1 0.6 0];
color.red = [1 0.2 0];
color.dgreen = [0 0.4 0];
color.green = [0 0.6 0];
color.lgreen = [0 0.8 0];
color.dblue = [0 0.2 1];
color.blue = [0.2 0.6 1];
color.lblue = [0.4 0.8 1];
color.brown = [0.4 0.2 0];
color.lbrown = [0.8 0.4 0];
color.yellow = [1 0.8 0];
color.lyellow = [1 1 0];
color.black = [0 0 0];
color.white = [1 1 1];
color.dgrey = [0.3 0.3 0.3];
color.grey = [0.5 0.5 0.5];
color.lgrey = [0.7 0.7 0.7];
color.vlgrey = [0.9 0.9 0.9];
density = struct;
density.wood = 650;
density.plastic = 920;
density.water = 1000;
density.aluminum = 2700;
density.steel = 7800;
density.titanium = 4500;
density.brass = 8600;
endSupport = struct;
endSupport.height = 50;
endSupport.width = 100;
endSupport.depth = 20;
endSupport.r_hole1 = 7;
endSupport.r_hole2and3 = 6;
endSupport.bearingThickness = 2;
endSupport.hole1_offset = [0 35];
endSupport.hole2_offset = [30 20];
endSupport.hole3_offset = [-30 20];
endSupport.density = 7800;
endSupport.supportColor = [0.3 0.3 0.3];
endSupport.bearingColor = [0.9 0.9 0.9];
endSupportZ = struct;
endSupportZ.height = 70;
endSupportZ.width = 140;
endSupportZ.depth = 30;
endSupportZ.r_hole1 = 10;
endSupportZ.r_hole2and3 = 10;
endSupportZ.bearingThickness = 2;
endSupportZ.hole1_offset = [0 40];
endSupportZ.hole2_offset = [30 20];
endSupportZ.hole3_offset = [-30 20];
endSupportZ.density = 7800;
endSupportZ.supportColor = [0.3 0.3 0.3];
endSupportZ.bearingColor = [0.9 0.9 0.9];
leadScrew = struct;
leadScrew.lead = 10; % mm per rotation
leadScrew.radius = 7;
leadScrew.length = 500;
leadScrew.density = 7800;
leadScrew.innerColor = [0.3 0.3 0.3];
leadScrew.outerColor = [0.7 0.7 0.7];
leadScrewZ = struct;
leadScrewZ.lead = 10; % mm per rotation
leadScrewZ.radius = 10;
leadScrewZ.length = 750;
leadScrewZ.density = 7800;
leadScrewZ.innerColor = [0.3 0.3 0.3];
leadScrewZ.outerColor = [0.7 0.7 0.7];
position = struct;
position.bias = 217.5; % center of gantry at rest mm
position.amplitude = 190; % +/- 190 mm in each direction
position.t_c = 0.02;
positionZ = struct;
positionZ.bias = 750/2; % center of gantry at rest mm
positionZ.amplitude = 190; % +/- 190 mm in each direction
positionZ.t_c = 0.02;
rail = struct;
rail.length = 500;
rail.radius = 6;
rail.density = 7800;
rail.color = [0.5 0.5 0.5];
railZ = struct;
railZ.length = 750;
railZ.radius = 10;
railZ.density = 7800;
railZ.color = [0.5 0.5 0.5];
runner = struct;
runner.height = 50;
runner.width = 100;
runner.depth = 65;
runner.r_hole1 = 7;
runner.r_hole2and3 = 6;
runner.bearingThickness = 2;
runner.hole1_offset = [0 35];
runner.hole2_offset = [30 20];
runner.hole3_offset = [-30 20];
runner.density = 7800;
runner.runnerColor = [0.3 0.3 0.3];
runner.bearingColor = [0.9 0.9 0.9];
runnerZ = struct;
runnerZ.height = 70;
runnerZ.width = 140;
runnerZ.depth = 100;
runnerZ.r_hole1 = 10;
runnerZ.r_hole2and3 = 10;
runnerZ.bearingThickness = 2;
runnerZ.hole1_offset = [0 40];
runnerZ.hole2_offset = [30 20];
runnerZ.hole3_offset = [-30 20];
runnerZ.density = 7800;
runnerZ.runnerColor = [0.3 0.3 0.3];
runnerZ.bearingColor = [0.9 0.9 0.9];