# HG changeset patch # User Paul Boddie # Date 1402096250 -7200 # Node ID 3736e22a916ba1a1be7c0f266032705a43bee58b # Parent e0f8c29b2b2f12a1326da4b73ce3fb404ff08c2f Fixed the positioning of the PCB support. diff -r e0f8c29b2b2f -r 3736e22a916b cartridge.scad --- a/cartridge.scad Sun May 18 14:33:10 2014 +0200 +++ b/cartridge.scad Sat Jun 07 01:10:50 2014 +0200 @@ -131,6 +131,11 @@ inner_side_front_cutout_depth = groove_width_extra; inner_side_front_cutout_offset = groove_depth; + /* + The back cavity is the indented part at the bottom of the back of the + cartridge. + */ + back_cavity_width = 68.0; back_cavity_inner_width = 65.0; back_cavity_offset_from_left = 10.5; @@ -139,6 +144,8 @@ back_cavity_inner_height = 12.0; back_cavity_depth = 1.5; + /* The effect of the cavity on the inside of the case. */ + inner_back_cavity_offset = 1.0; inner_back_cavity_offset_from_left = back_left; inner_back_slope_offset_from_left = 10.0; @@ -155,6 +162,8 @@ inner_front_edge_height = 3.0; inner_front_edge_depth = 1.5; + /* The height of the floor of the compartment above the very bottom. */ + bottom_from_base = 14.0; edge_connector_cutout_front_offset = 1.0; @@ -194,7 +203,7 @@ pcb_back_support_top_bump_height = 3.8; /* Move the PCB support towards the centre. */ - pcb_support_margin = 0.55; + pcb_support_margin = 1.75; pcb_lug_depth = pcb_back_support_depth + pcb_back_support_bump_depth; @@ -218,6 +227,14 @@ /* Repeated constructs. */ module pcb_support(xdir, bump_height, bump_offset) { + + /* + Translate the support in the stated direction. + Since the support is already justified in the direction, the translation + moves the inner edge of the support to alignment with the end of the + edge connector cutout and then back by the PCB support margin. + */ + translate([xdir * (edge_connector_cutout_back_width / 2 - pcb_support_margin), edge_connector_cutout_back_depth,