diff options
author | xengineering <me@xengineering.eu> | 2024-01-26 19:00:06 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-26 19:00:06 +0100 |
commit | 13ffb7887a6d0eb488eb957b133194fec89198de (patch) | |
tree | 95a3573dce2ccd741e56c6fa0876ff5b851722f2 | |
parent | 38d6997e5f6bd725b28c8cc6ed28cda670a2e900 (diff) | |
download | soundbox-13ffb7887a6d0eb488eb957b133194fec89198de.tar soundbox-13ffb7887a6d0eb488eb957b133194fec89198de.tar.zst soundbox-13ffb7887a6d0eb488eb957b133194fec89198de.zip |
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.
-rw-r--r-- | mech/pcb_case/conversion.scad | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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+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 ]; |