z-axis: make zmotor_delta_{x,y} use local coordinate system
[clinton/prusa3.git] / box_frame / inc / settings.scad
CommitLineData
815fe4ec
VAH
1// Moved from config.scad
2
3board_to_xz_distance = 26;
4xaxis_rod_distance = 45;
5
6//calculated from settings
7single_wall_width = width_over_thickness * layer_height;
8
9idler_width = max(belt_width, (idler_bearing[1] > 7 ? idler_bearing[1] : 7)) + 2.5 * idler_bearing[3] ;
10
11//deltas are used to enlarge parts for bigger bearings
12xy_delta = ((bushing_xy[1] <= 7.7) ? 0 : bushing_xy[1] - 7.7) * 0.9;
303a4707
CE
13
14// fixme: this seems useless now but ... ?
15z_delta = 0; //(bushing_z[1] <= 7.7) ? 0 : bushing_z[1] - 7.7;
815fe4ec
VAH
16
17m3_nut_diameter_bigger = ((m3_nut_diameter / 2) / cos (180 / 6)) * 2;
c42fa5ac
CE
18
19// deprecated
20i_am_box = (frame_type == frame_box);
51dbb82b 21
fb91eeba 22// shift smooth rod and leadscrew mounts simultaneously
51dbb82b 23zaxis_delta_x = (frame_type == frame_alu) ? 5 : 0;
fb91eeba 24zaxis_delta_y = (frame_type == frame_alu) ? -5 : 0;
51dbb82b
CE
25
26// shift motor/leadscrew mount to clear bearings and x-rods
fb91eeba
CE
27// X/Y ARE SWITCHED FROM X-END CONFIGURATION BE WARNED
28// BONUS FUN: X (Y in x-end configuration) IS INVERTED!
29// fixed, but it was all a fucking tautology in the end whoops
30zmotor_delta_x = ((frame_type == frame_alu) && (bushing_z[1] > 9)) ? 3 : 0;
31zmotor_delta_y = ((frame_type == frame_alu) && (bushing_xy[0] >= 5)) ? 5 : 0;