chiark / gitweb /
adafruit-powerboost: break out psu_board_nutbox_y
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Nov 2021 19:53:01 +0000 (19:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Nov 2021 19:53:01 +0000 (19:53 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adafruit-powerboost-common.scad

index 7fc3b976c649504a22a9d1bbd2378e6e35742214..7d25fc7c777ccd2e8d2603d32da51bc89f935c04 100644 (file)
@@ -41,6 +41,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);
+psu_board_nutbox_y = psu_sz[1]/2 + psu_board_nutbox[0]/2;
 
 module PsuBoardRepresentation(){
   linear_extrude(height= psu_th)
@@ -124,7 +125,7 @@ module PsuMountPositive(){
        circle(r= psu_hole_dia/2);
     }
   }
-  translate([0, psu_sz[1]/2 + psu_board_nutbox[0]/2, 0])
+  translate([0, psu_board_nutbox_y, 0])
     rotate([0,0,180])
     NutBox(psu_board_nutbox, psu_z_down);
 }