chiark / gitweb /
powerbank-bike-clamp: debug
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Dec 2024 18:36:41 +0000 (18:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Dec 2024 18:39:39 +0000 (18:39 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
powerbank-bike-clamp.scad

index 73aa76cc2f5619552fd2d60959b654ce7f3489ad..dd93f0632dcfad49d846e9a5f39495d3def846c1 100644 (file)
@@ -122,6 +122,8 @@ top_cnr_r = min(endwall_th, main_th);
 mounted_pos_y_offset = max(mounted_pos_y_offset_lim,
                           bot_y - (-(bank_y_sz/2 + endwall_th)));
 
+echo(hinge_stride, clamp_width_actual);
+
 
 module TubePlan(){ circle(r = tube_dia/2); }
 module HingePinPlan(){ translate([0, hinge_y]) circle(r= hinge_pin/2); }
@@ -203,6 +205,7 @@ module SomeClamp(hinge_alt=false){
     for (i=[0 : hinge_lobes-1]) {
       z = -clamp_width_actual/2 + i * hinge_stride
                 + (hinge_alt ? hinge_stride/2 : 0);
+      echo(z, z  -hinge_gap_z, z + hinge_stride/2);
       translate([0,
                 hinge_y,
                 z,