chiark / gitweb /
adafruit-powerboost-500: provide psu_y and trim properly
[reprap-play.git] / adafruit-powerboost-500.scad
index 63650ee5f45757bea00c4ebe34117f9785bcdade..69d1bbd395699e8898054764a92a6df5370beb06 100644 (file)
@@ -30,6 +30,8 @@ psu_board_clamp_ovlp = 4.5;
 psu_board_support_wall = 2;
 psu_board_nutbox = nutbox_data_M3;
 
+psu_y = +psu_sz[1]/2 + psu_usb_protr;
+
 // ----- calculated -----
 
 psu_usbend_led_depth = psu_baffle_cnr_y*2 - psu_usbend_led_x;
@@ -142,7 +144,10 @@ module PsuMountNegative(){
 
 module PsuMountPositive(){
   difference(){
-    PsuMountPositiveMain();
+    intersection(){
+      PsuMountPositiveMain();
+      linextr_y_xz(-psu_y, psu_sz[1]*2) square(100, center=true);
+    }
     PsuMountNegative();
     intersection(){
       hull(){