included pcb_z in bottom height calculation.

This commit is contained in:
Edward Kisiel
2024-02-07 11:01:57 -05:00
parent 5fde770566
commit 2697bc7648

View File

@@ -154,7 +154,7 @@ pcb_radius = sbc_data[s[0]][11][0];
width = pcb_width+2*(wallthick+gap)+case_offset_x;
depth = pcb_depth+2*(wallthick+gap)+case_offset_y;
top_height = pcb_tmaxz+floorthick+case_offset_tz;
bottom_height = pcb_bmaxz+floorthick+case_offset_bz;
bottom_height = pcb_z+pcb_bmaxz+floorthick+case_offset_bz;
case_z = bottom_height+top_height;
case_diameter = sqrt(pow(width-wallthick-gap,2)+pow(depth-wallthick-gap,2));
hex_diameter = sqrt(pow(width+2*(wallthick+gap),2)+pow(depth+2*(wallthick+gap),2));