z-axis: add leadscrew delta and compute deltas
[clinton/prusa3.git] / box_frame / inc / settings.scad
index dbf1797..c2944ec 100644 (file)
@@ -13,3 +13,14 @@ xy_delta = ((bushing_xy[1] <= 7.7) ? 0 : bushing_xy[1] - 7.7) * 0.9;
 z_delta = (bushing_z[1] <= 7.7) ? 0 : bushing_z[1] - 7.7;
 
 m3_nut_diameter_bigger = ((m3_nut_diameter / 2) / cos (180 / 6)) * 2;
+
+// deprecated
+i_am_box = (frame_type == frame_box);
+
+// shift smooth rod and leadscrew mounts together
+zaxis_delta_x = (frame_type == frame_alu) ? 5 : 0;
+zaxis_delta_y = (frame_type == frame_alu) ? 5 : 0;
+
+// shift motor/leadscrew mount to clear bearings and x-rods
+zmotor_delta_x = ((frame_type == frame_alu) && (bushing_z[1] > 9)) ? 5 : 0;
+zmotor_delta_y = ((frame_type == frame_alu) && (bushing_xy[0] >= 5)) ? -3 : 0;