3
1
Back

Luthers From 0d370a24cdcaf6d3fd7f0316855522b79df0fe9a Mon Sep 17 00:00:00 2001 Subject: [PATCH] Fix rail clearance = ~11.675mm, top and bottom railHeight = (threeUHeight-panelOuterHeight)/2; mountSurfaceHeight = (panelOuterHeight-panelInnerHeight-railHeight*2)/2; panelInnerOffset = (panelOuterHeight-panelInnerHeight)/2; echo("railHeight: ", railHeight); echo("mountSurfaceHeight",mountSurfaceHeight); offsetToMountHoleCenterY=mountSurfaceHeight/2; offsetToMountHoleCenterX = hp - holeOffset; // 1 for 5v / 2.5v output mode (sw12) // 1 for 5v / 2.5v output mode // 10 steps (sw1-sw10) // 1 for run/stop (sw14 h_wall(h=4, l=slider_spacing*10-1, th=1); v_wall(h=4, l=height-rail_clearance*2-thickness, th=thickness*1.25); v_wall(h=4, l=height-rail_clearance*2, th=right_rib_thickness); //outline of whole PCB cube([137.5, 97, 1], center=true); echo("Putting a hole with radius: ", hole_r , " at ", width_mm - h_margin; left_rib_x = thickness + 6 + tolerance; rail_depth = 27.4 + tolerance; // left_rib_x = thickness + 9.5/2 + tolerance*2; // rib + half a jack col_right = width_mm - thickness*2.5 - tolerance*6; out_row_1 = v_margin+12; slider_bottom = v_margin+8; module label(string, size=4, halign="center", font=default_label_font) { } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } module pot_0547.

New Pull Request