From a1db996a79484b6fdec27ee012c760c5e7b4a6b5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 16 Feb 2021 17:59:28 +0000 Subject: [PATCH] powerbank-bike-clamp: Move brace and strap away from button The power bank has a button and some LEDs where the brace and strap were. Signed-off-by: Ian Jackson --- powerbank-bike-clamp.scad | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/powerbank-bike-clamp.scad b/powerbank-bike-clamp.scad index 50518ac..18b3adb 100644 --- a/powerbank-bike-clamp.scad +++ b/powerbank-bike-clamp.scad @@ -68,6 +68,10 @@ liner_th = 0.8; brace_r = 5; brace_len = 50; +straps_y_adj = [ 3.5, + 0, + 0 ]; + // calculated straps_y = [ -bank_y_sz * 0.25, // these entries are special and used @@ -97,8 +101,11 @@ bank_bot_y = strap_above + strap_th; strap_r = strap_th; brace_total_len = brace_len + main_th; -brace_ctrs_y = [ straps_y[0] - (brace_r + strap_w/2), - straps_y[1] + (brace_r + strap_w/2) ]; +brace_ctrs_y_nom = [ straps_y[0] - (brace_r + strap_w/2), + straps_y[1] + (brace_r + strap_w/2) ]; + +brace_ctrs_y = [ (straps_y + straps_y_adj)[0] + (brace_r + strap_w/2), + (straps_y + straps_y_adj)[1] + (brace_r + strap_w/2) ]; clamp_width_actual = max(clamp_min_width, holder_x_sz); @@ -301,12 +308,12 @@ module PowerBankHolder(){ ////toplevel } } translate([brace_total_len, 0,0]) - linextr_y_xz(brace_ctrs_y[0] - brace_r, - brace_ctrs_y[1] + brace_r) + linextr_y_xz(brace_ctrs_y_nom[0] - brace_r, + brace_ctrs_y_nom[1] + brace_r) BraceTubePlan(); } - for (strap_y = straps_y) { + for (strap_y = straps_y + straps_y_adj) { translate([0, strap_y, 0]) { linextr(-holder_x_sz/2, +holder_x_sz/2){ @@ -322,7 +329,7 @@ module PowerBankHolder(){ ////toplevel } } - for (strap_y = straps_y) + for (strap_y = straps_y + straps_y_adj) translate([0, strap_y, 0]) rotate([0,0,-90]) rotate([0,90,0]) -- 2.30.2