Commit | Line | Data |
---|---|---|
815fe4ec VAH |
1 | // Moved from config.scad |
2 | ||
3 | board_to_xz_distance = 26; | |
4 | xaxis_rod_distance = 45; | |
5 | ||
6 | //calculated from settings | |
7 | single_wall_width = width_over_thickness * layer_height; | |
8 | ||
9 | idler_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 | |
12 | xy_delta = ((bushing_xy[1] <= 7.7) ? 0 : bushing_xy[1] - 7.7) * 0.9; | |
303a4707 CE |
13 | |
14 | // fixme: this seems useless now but ... ? | |
15 | z_delta = 0; //(bushing_z[1] <= 7.7) ? 0 : bushing_z[1] - 7.7; | |
815fe4ec VAH |
16 | |
17 | m3_nut_diameter_bigger = ((m3_nut_diameter / 2) / cos (180 / 6)) * 2; | |
c42fa5ac CE |
18 | |
19 | // deprecated | |
20 | i_am_box = (frame_type == frame_box); | |
51dbb82b | 21 | |
fb91eeba | 22 | // shift smooth rod and leadscrew mounts simultaneously |
51dbb82b | 23 | zaxis_delta_x = (frame_type == frame_alu) ? 5 : 0; |
fb91eeba | 24 | zaxis_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 | |
30 | zmotor_delta_x = ((frame_type == frame_alu) && (bushing_z[1] > 9)) ? 3 : 0; | |
31 | zmotor_delta_y = ((frame_type == frame_alu) && (bushing_xy[0] >= 5)) ? 5 : 0; |