chiark / gitweb /
belt-slot-cut-jig: crewpunch_skew_yoff is broken; rename old variable and set to...
[reprap-play.git] / belt-slot-cut-jig.scad
index a89a071f34c1a9d1375ede5c003f723aa8a8a48e..1b3b3c87c0420d014ddd404546f124ec27627e4e 100644 (file)
@@ -58,6 +58,7 @@ crewpunch_smallest_shape = crewpunch_shape[0];
 crewpunch_biggest_shape = crewpunch_shape[len(crewpunch_shape)-1];
 
 crewpunch_skew_angle = 3.5; //degrees
+crewpunch_skew_yoff_broken = 0; //mm
 crewpunch_skew_yoff = -1.1; //mm
 
 // computed
@@ -71,13 +72,13 @@ holder_xsz = crewpunch_biggest_shape[2][0] + crewpunch_biggest_shape[2][1] +
 holder_skewangle_yextra = holder_xsz/2 * sin(abs(crewpunch_skew_angle));
 
 holder_front_all = crewpunch_shaft_max_y - crewpunch_biggest_shape[1][0]
-  + attach_ysz + crewpunch_systematic_size_error + crewpunch_skew_yoff
+  + attach_ysz + crewpunch_systematic_size_error + crewpunch_skew_yoff_broken
   + holder_skewangle_yextra;
 
 crewpunch_biggest_y =
   crewpunch_biggest_shape[1][0] + crewpunch_biggest_shape[1][1];
 holder_ysz = crewpunch_biggest_y + holder_min_wall + holder_front_all
-  + max(0, -crewpunch_skew_yoff);
+  + max(0, -crewpunch_skew_yoff_broken);
 
 attach_offset = 0.5 * (holder_front_all - holder_attach_near_wall);
 
@@ -118,7 +119,7 @@ module PunchHolder(cutouts=true){
       translate([0,attach_offset,0])
        cube([holder_xsz, holder_ysz - attach_offset, holder_block_zsz]);
       if (cutouts)
-       translate([0,-crewpunch_skew_yoff])
+       translate([0,-crewpunch_skew_yoff_broken])
        translate(-translations)
        rotate([0,0,-crewpunch_skew_angle])
        translate(translations)