@@ -20,7 +20,7 @@ module DebugPCB() {
2020 translate ([wall_thickness, wall_thickness, wall_thickness])
2121
2222 // move up by the height of the screw inserts
23- translate ([0 , 0 , HeatsetInsert_height ])
23+ translate ([0 , 0 , m3_insert_hole_depth ])
2424
2525 // move by the offset
2626 translate ([PCB_offset.x, PCB_offset.y, 0 ])
@@ -32,12 +32,12 @@ module DebugPCB() {
3232
3333module HeatsetInsertStandoff(extend=0) {
3434 HeatsetInsertStandoff_profile_points = [
35- [0 , HeatsetInsert_height * 0 /3 ],
36- [0 , HeatsetInsert_height * 3 /3 ],
37- [HeatsetInsert_diameter, HeatsetInsert_height * 3 /3 ],
38- [HeatsetInsert_diameter, HeatsetInsert_height * 2 /3 ],
39- [HeatsetInsert_diameter + HeatsetInsert_height /3 , HeatsetInsert_height * 1 /3 ],
40- [HeatsetInsert_diameter + HeatsetInsert_height /3 , HeatsetInsert_height * 0 /3 ],
35+ [0 , m3_insert_hole_depth * 0 /3 ],
36+ [0 , m3_insert_hole_depth * 3 /3 ],
37+ [m3_insert_hole_diameter, m3_insert_hole_depth * 3 /3 ],
38+ [m3_insert_hole_diameter, m3_insert_hole_depth * 2 /3 ],
39+ [m3_insert_hole_diameter + m3_insert_hole_depth /3 , m3_insert_hole_depth * 1 /3 ],
40+ [m3_insert_hole_diameter + m3_insert_hole_depth /3 , m3_insert_hole_depth * 0 /3 ],
4141 ];
4242
4343 render ()
@@ -116,7 +116,7 @@ module GpsAntennaLid() {
116116 }
117117
118118 translate ([0 , GpsAntennaHousing_top_height / 2 - GpsAntennaHousing_screw_offset, GpsAntennaHousing_depth - GpsAntennaLid_thickness])
119- cylinder (d= ScrewHole_diameter_M3 , h= 10 , $ fn= 32 );
119+ cylinder (d= m3_screw_diameter_loose , h= 10 , $ fn= 32 );
120120 }
121121}
122122
@@ -235,11 +235,11 @@ module MainCase(without_inserts=false, top_rider=MainCase_top_rider, back_rider=
235235 rotate ([90 ,0 ,0 ])
236236 linear_extrude(OBS_width)
237237 polygon(polyRound([
238- [wall_thickness, wall_thickness+ HeatsetInsert_height , 0 ],
239- [OBS_height- wall_thickness, wall_thickness+ HeatsetInsert_height , 0 ],
240- [OBS_height- wall_thickness, OBS_depth- 2 * HeatsetInsert_height , 0 ],
238+ [wall_thickness, wall_thickness+ m3_insert_hole_depth , 0 ],
239+ [OBS_height- wall_thickness, wall_thickness+ m3_insert_hole_depth , 0 ],
240+ [OBS_height- wall_thickness, OBS_depth- 2 * m3_insert_hole_depth , 0 ],
241241 [OBS_height/2 , OBS_depth- 20 + OBS_height/2 , 0 ],
242- [wall_thickness, OBS_depth- 2 * HeatsetInsert_height , 0 ],
242+ [wall_thickness, OBS_depth- 2 * m3_insert_hole_depth , 0 ],
243243 ], fn=$ pfn));
244244
245245 translate ([0 , 78 , 0 ])
@@ -273,7 +273,7 @@ module MainCase(without_inserts=false, top_rider=MainCase_top_rider, back_rider=
273273
274274 // a little standoff for the PCB
275275 translate ([wall_thickness, PCB_offset.y + wall_thickness, wall_thickness])
276- linear_extrude(HeatsetInsert_height )
276+ linear_extrude(m3_insert_hole_depth )
277277 polygon(polyRound([
278278 [0 , 0 , 0 ],
279279 [3 , 0 , 0 ],
@@ -362,7 +362,7 @@ module MainCase(without_inserts=false, top_rider=MainCase_top_rider, back_rider=
362362 }
363363
364364 // Hole for USB Charger Port
365- translate ([UsbPort_offset, 0 , HeatsetInsert_height + wall_thickness - UsbPort_vertical_offset])
365+ translate ([UsbPort_offset, 0 , m3_insert_hole_depth + wall_thickness - UsbPort_vertical_offset])
366366 hull ()for (i= [- 1 , 1 ])for (j= [- 1 , 1 ]) {
367367 translate ([i/2 * 6.5 , 0 , j/2 * 0.7 ])
368368 rotate ([- 90 , 0 , 0 ])
@@ -394,14 +394,14 @@ module MainCase(without_inserts=false, top_rider=MainCase_top_rider, back_rider=
394394 }
395395}
396396
397- module HexNutHole(depth =0) {
397+ module HexNutHole(nut_depth=3, screw_depth =0) {
398398 mirror ([0 , 0 , 1 ])
399399 union () {
400- cylinder (d= HexNutHole_diameter , h= HexNutHole_depth , $ fn= 6 );
400+ cylinder (d= m3_hex_nut_diameter , h= nut_depth , $ fn= 6 );
401401
402- if (depth > HexNutHole_depth ) {
403- translate ([0 , 0 , HexNutHole_depth ])
404- cylinder (d= ScrewHole_diameter_M3 , h= depth - HexNutHole_depth , $ fn= 32 );
402+ if (screw_depth > nut_depth ) {
403+ translate ([0 , 0 , nut_depth ])
404+ cylinder (d= m3_screw_diameter_loose , h= screw_depth - nut_depth , $ fn= 32 );
405405 }
406406 }
407407}
@@ -467,7 +467,7 @@ module MountAttachmentHolePattern(with_cable_hole=true) {
467467 j * MountAttachment_holes_dy / 2 ,
468468 0 ,
469469 ])
470- HexNutHole(20 );
470+ HexNutHole(nut_depth = 4 , screw_depth = 20 );
471471 }
472472 }
473473 }
0 commit comments