From 13ffb7887a6d0eb488eb957b133194fec89198de Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 26 Jan 2024 19:00:06 +0100 Subject: mech: Fix wrong case y dimension calculation The y dimension of the shell connectors was assumed to be bolt_l. But this ignores that their thickness is bolt_l-t because the bolt has to go through the shell with thickness t before entering the shell connector. --- mech/pcb_case/conversion.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mech') diff --git a/mech/pcb_case/conversion.scad b/mech/pcb_case/conversion.scad index ebf2612..69c3c3b 100644 --- a/mech/pcb_case/conversion.scad +++ b/mech/pcb_case/conversion.scad @@ -3,6 +3,6 @@ include function dim_pcb_to_case(pcb_dim, margins, t) = [ pcb_dim[0]+margins[0][0]+margins[0][1]+4*t, - pcb_dim[1]+margins[1][0]+margins[1][1]+2*t+2*bolt_l, + pcb_dim[1]+margins[1][0]+margins[1][1]+2*t+2*(bolt_l-t), pcb_dim[2]+margins[2][0]+margins[2][1]+4*t ]; -- cgit v1.2.3-70-g09d2