-rw-r--r-- | another.scad | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/another.scad b/another.scad index 51358ee..eea918b 100644 --- a/another.scad +++ b/another.scad | |||
@@ -73,25 +73,26 @@ module the_extruder( | |||
73 | bridges = true, | 73 | bridges = true, |
74 | debug = false, | 74 | debug = false, |
75 | label = "another" | 75 | label = "another" |
76 | ) { | 76 | ) { |
77 | fnd = 2*PI; fnr = 2*fnd; | 77 | fnd = 2*PI; fnr = 2*fnd; |
78 | function lu(m,k) = m[search([k],m)[0]][1]; | 78 | function lu(m,k) = m[search([k],m)[0]][1]; |
79 | 79 | ||
80 | pulley_d = lu(pulley,"d"); | 80 | pulley_d = lu(pulley,"d"); |
81 | pulley_h = lu(pulley,"h"); | 81 | pulley_h = lu(pulley,"h"); |
82 | teeth_elevation = lu(pulley,"fe"); | 82 | teeth_elevation = lu(pulley,"fe"); |
83 | filament_offset = lu(pulley,"g")+filament_d/2; | 83 | filament_offset = lu(pulley,"g")+filament_d/2; |
84 | pulley_d_clearance = lu(pulley,"ssrc")*2; | 84 | pulley_d_clearance = lu(pulley,"ssrc")*2; |
85 | idler_filament_offset = filament_path_d/2; // -filament_offset; | 85 | |
86 | idler_filament_offset = filament_path_d/2; | ||
86 | lever_shell = mount_screwhead_h+0.5; | 87 | lever_shell = mount_screwhead_h+0.5; |
87 | lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); | 88 | lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); |
88 | lsd = idler_d-idler_clearance*2; // the diameter of lever thingie | 89 | lsd = idler_d-idler_clearance*2; // the diameter of lever thingie |
89 | longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell; | 90 | longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell; |
90 | shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) | 91 | shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) |
91 | sqrt(c*c+pow(a-c,2)); | 92 | sqrt(c*c+pow(a-c,2)); |
92 | longwing_travel = idler_travel*longwing/shortwing; | 93 | longwing_travel = idler_travel*longwing/shortwing; |
93 | h_ = (pulley_d+idler_d)/(2*sqrt(2)); | 94 | h_ = (pulley_d+idler_d)/(2*sqrt(2)); |
94 | ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); | 95 | ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); |
95 | spring_dl = idler_travel*longwing/ri; | 96 | spring_dl = idler_travel*longwing/ri; |
96 | // finger and spring support | 97 | // finger and spring support |
97 | fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); | 98 | fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); |