chiark / gitweb /
adafruit-powerboost: provide psu_fix_sz
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Nov 2021 19:52:45 +0000 (19:52 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Nov 2021 19:52:45 +0000 (19:52 +0000)
From other repo

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adafruit-powerboost-common.scad

index 7a61157b6e1af7ef66da2ce47bc1240367bad17a..7fc3b976c649504a22a9d1bbd2378e6e35742214 100644 (file)
@@ -40,6 +40,7 @@ psu_y = +psu_sz[1]/2 + psu_usb_protr;
 
 psu_z = NutBox_h_base(psu_board_nutbox);
 psu_z_down = psu_z + 0.1;
+psu_fix_sz = NutBox_outer_size(psu_board_nutbox);
 
 module PsuBoardRepresentation(){
   linear_extrude(height= psu_th)
@@ -133,7 +134,7 @@ module PsuClamp(){ ////toplevel
     linear_extrude(height=psu_clamp_th + psu_th_for_clamp, convexity=5) {
       difference(){
        hull(){
-         circle(r = fix_sz/2);
+         circle(r = psu_fix_sz/2);
          translate([ -psu_board_nutbox[0]/2, 0])
            square(center=true, [ psu_board_clamp_ovlp*2, psu_clamp_w ]);
        }