From 78447efe6110cd4cfd6a48fd05b1cd8139f02894 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 7 Jan 2024 18:19:40 +0100 Subject: mech: pcb_case: Fix height calculation The height should take into account that the shell is two instead of one times the thickness high. This is relevant for the vertical spacing. --- mech/pcb_case/conversion.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mech/pcb_case/conversion.scad b/mech/pcb_case/conversion.scad index 1879b7d..d6add3c 100644 --- a/mech/pcb_case/conversion.scad +++ b/mech/pcb_case/conversion.scad @@ -3,5 +3,5 @@ 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+4*nut_h, - pcb_dim[2]+margins[2][0]+margins[2][1]+2*t + pcb_dim[2]+margins[2][0]+margins[2][1]+4*t ]; -- cgit v1.2.3-70-g09d2