x-end: position idler bearing in relation to motor pulley
[clinton/prusa3.git] / box_frame / x-end.scad
index 77ff3b1..7e08920 100644 (file)
@@ -21,6 +21,8 @@ thinwall = single_wall_width * 6; // 3 perimeters
 vertical_bushing_base_size = bushing_z[1]*2 + 2 * thinwall;
 
 x_box_length = 45; // TODO: auto-adjust based on bearing size?
+// z position of rotor shaft
+motor_shaft_z = 30.25;
 
 // todo: add ghost bearing model to make it easier to spot check if
 // everything is aligned
@@ -65,6 +67,8 @@ function x_base_back() = -10 - bushing_xy[0] - x_box_width/2;
 function x_base_outside() = vertical_bushing_base_size/2;
 // y position of edge of main block facing toward the x-axis
 function x_base_inside() = -x_box_length/2 - vertical_bushing_base_size/2;
+// z position of motor shaft (for aligning idler pulley)
+function x_motor_shaft_z() = motor_shaft_z; // TODO: if it's straightforward, return vector [x,y,z]. x = x_base_inside()
 
 module x_end_base(){
 // Main block