chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d718e51
)
powerbank-bike-clamp: adjust pos to as far up as possible
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 8 Feb 2021 17:37:22 +0000
(17:37 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 8 Feb 2021 17:37:22 +0000
(17:37 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
powerbank-bike-clamp.scad
patch
|
blob
|
history
diff --git
a/powerbank-bike-clamp.scad
b/powerbank-bike-clamp.scad
index 2204ad7f24a61567b516aa38cb8a806ac3572d70..1b3b15c31776ad9bd3023d8adf09e695bcaaa3bd 100644
(file)
--- a/
powerbank-bike-clamp.scad
+++ b/
powerbank-bike-clamp.scad
@@
-57,7
+57,7
@@
bank_profile_scale_bodge = 1.0;
bank_output_ctr = [ 12.5, 11.5 ]; // from nearest corner
bank_output_sz = [ 11.0, 10.5 ];
-mounted_pos_y_offset
= 2
0;
+mounted_pos_y_offset
_lim = -10
0;
liner_th = 0.8;
@@
-105,7
+105,9
@@
hinge_y = tube_dia/2 + hinge_outer_r;
top_cnr_r = min(endwall_th, main_th);
-echo(bot_y);
+mounted_pos_y_offset = max(mounted_pos_y_offset_lim,
+ bot_y - (-(bank_y_sz/2 + endwall_th)));
+
module TubePlan(){ circle(r = tube_dia/2); }
module HingePinPlan(){ translate([0, hinge_y]) circle(r= hinge_pin/2); }