- // clip spring
- for (r = [-clip_spring_angle/2, clip_spring_angle/2]) {
- rotate([0, 0, r])
- translate([-thin_wall/2, 0, motor_len + motor_wall - clip_spring_depth])
- cube([infty, thin_wall, infty]);
- };
- translate([0, 0, motor_len - eps])
- intersection() {
- cylinder(r = motor_diam/2,
- h = thick_wall + 2*eps);
- rotate([0, 0, -clip_spring_angle/2+eps])
- cube(infty);
- rotate([0, 0, clip_spring_angle/2-eps])
- scale([1, -1, 1])
- cube([infty, infty, 8]);
- };
-
-