X-Git-Url: https://git.hcoop.net/clinton/prusa3.git/blobdiff_plain/d4f661da75d03b2f151503d8fd8357c29c7d1bcf..231035dc6f141639442ab87576b7684130aec977:/box_frame/inc/settings.scad diff --git a/box_frame/inc/settings.scad b/box_frame/inc/settings.scad index 5bc51a3..edbd3c0 100644 --- a/box_frame/inc/settings.scad +++ b/box_frame/inc/settings.scad @@ -3,6 +3,9 @@ board_to_xz_distance = 26; xaxis_rod_distance = 45; +x_box_height = 5 + xaxis_rod_distance + bushing_xy[0] * 2 + 0.25; +x_box_width = (bushing_xy[0] <= 4) ? 17.5 : bushing_xy[0] * 2 + 9.5; + //calculated from settings single_wall_width = width_over_thickness * layer_height; @@ -12,6 +15,7 @@ idler_width = max(belt_width, (idler_bearing[1] > 7 ? idler_bearing[1] : 7)) + 2 xy_delta = ((bushing_xy[1] <= 7.7) ? 0 : bushing_xy[1] - 7.7) * 0.9; // fixme: this seems useless now but ... ? +// fixme: might need something (this is it?) to compensate for x_box_width increasing with size of bearing z_delta = 0; //(bushing_z[1] <= 7.7) ? 0 : bushing_z[1] - 7.7; m3_nut_diameter_bigger = ((m3_nut_diameter / 2) / cos (180 / 6)) * 2; @@ -24,8 +28,8 @@ zaxis_delta_x = (frame_type == frame_alu) ? 0 : 0; zaxis_delta_y = (frame_type == frame_alu) ? -5 : 0; // shift motor/leadscrew mount to clear bearings and x-rods -// X/Y ARE SWITCHED FROM X-END CONFIGURATION BE WARNED -// BONUS FUN: X (Y in x-end configuration) IS INVERTED! -// fixed, but it was all a fucking tautology in the end whoops +// Y controls the extra distance between the motor and smooth rod, and +// X controls the extra distance between the motor and the frame +// TODO: auto calculate based on bearing (and leadscrew nut?) sizes zmotor_delta_x = ((frame_type == frame_alu) && (bushing_z[1] > 9)) ? 3 : 0; zmotor_delta_y = ((frame_type == frame_alu) && (bushing_xy[0] >= 5)) ? 5 : 0;