x-end: refine integration with MK3 idler tensioner
[clinton/prusa3.git] / box_frame / x-end-idler.scad
index 7bcff04..239567e 100644 (file)
@@ -16,9 +16,8 @@ use <y-drivetrain.scad>
 // Bearing is being moved back into mount and separate tensioner
 // removed, need to ensure the width of the slot is wide enough to fix
 // the bearing plus 1-2mm clearance. Can calculate along with
-// x_box_width in settings.scad. Unlikely there's any reason to
-// complicate x_box_width by checking if bearing exceeds the width
-// calculated based rod diameter.
+// x_box_width in settings.scad. Slot is slightly too narrow for a
+// Gates GT2 idler for example.
 
 // radius of screw hole for pulley (todo: ideally would adjust to
 // closest screw diameter to idler_bearing inner diameter)
@@ -62,16 +61,13 @@ module x_end_idler(){
   x_end_idler_holes();
  }
 
- %translate([-14 - xy_delta / 2, 25, pulley_mount_z - (max(idler_width, 16) / 2)]) x_tensioner();
-}
-
-module x_tensioner(len=50, idler_height=max(idler_bearing[0], 16)) {
-     // todo: scal narrow_width with size of belt hole, if that becomes scalable
-     idlermount(len=len, rod=m4_diameter / 2 + 0.5, idler_height=idler_height, narrow_len=30, narrow_width=9);
+ // fixme: 10 is another magic number, thickness of the wall which is not guaranteed to be static
+ %mirror ([0, 1, 0]) translate([x_base_back() + 10, pulley_mount_y, pulley_mount_z]) rotate([0, 90, 0]) intersection () {
+      idler_assy(idler_bearing);
+      cube ([idler_bearing[0]+10, idler_bearing[0]+10, idler_bearing[1]+20],center=true);
+ }
 }
 
-translate([-40, 0, 4 - bushing_xy[0]]) x_tensioner();
-
 x_end_idler();
 
 if (idler_bearing[3] == 1) {  // bearing guides