summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-01-07 18:19:40 +0100
committerxengineering <me@xengineering.eu>2024-01-09 19:26:25 +0100
commit78447efe6110cd4cfd6a48fd05b1cd8139f02894 (patch)
tree53a8d886ec1c1389258364dc5c24d446c1dad909
parente1acff9b0583e19dec4c27061c4bb4d16fe79d1b (diff)
downloadsoundbox-78447efe6110cd4cfd6a48fd05b1cd8139f02894.tar
soundbox-78447efe6110cd4cfd6a48fd05b1cd8139f02894.tar.zst
soundbox-78447efe6110cd4cfd6a48fd05b1cd8139f02894.zip
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.
-rw-r--r--mech/pcb_case/conversion.scad2
1 files changed, 1 insertions, 1 deletions
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 <nut.scad>
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
];