wallthick = 2.5;
+strap_w = 5;
+strap_th = 4;
+strap_pillar = 3;
+strap_pillard = 5;
+strap_over = 2;
+
// calculated
totx_outer = totx_inner + wallthick*2;
module Box(){ ////toplevel
$sealingbox_sz = sb_box_sz;
- rotate([90,0,0])
- translate([-wallthick,-wallthick, -toty_inner])
- SealingBox_RectBox();
- color("blue")
- cube([totx_inner, toty_inner, totz_inner]);
+
+ chargingconn_x = pxp6012_rad_outer + 1 + $sealingbox_cnrrad;
+ switch_x = chargingconn_x + pxp6012_rad_outer
+ + s1930_y_outer/2 + s1930_around;
+
+ strap_x_tot = strap_w + strap_pillar*2;
+
+ difference(){
+ union(){
+ rotate([90,0,0])
+ translate([-wallthick,-wallthick, -toty_inner])
+ SealingBox_RectBox();
+
+ translate([switch_x, toty_inner, totz_inner/2])
+ rotate([90,0,90])
+ S1930_Positive();
+
+ // straps for lipo
+ for (sx= [ 45, 80, 110 ]) {
+ for (sy= [ 10, 40 ]) {
+ translate([sx - strap_x_tot, sy, 0])
+ difference(){
+ translate([0,0, -0.1])
+ cube([strap_x_tot, strap_pillard, strap_th + strap_over]);
+ translate([strap_pillar, -1, 0])
+ cube([strap_w, strap_pillard+2, strap_th]);
+ }
+ }
+ }
+ }
+
+ // charging connector
+ translate([chargingconn_x,
+ toty_inner - (pxp6012_rad_outer + 5),
+ 10])
+ cylinder(r= pxp6012_rad, h= totz_outer);
+
+ translate([switch_x, toty_inner, totz_inner/2])
+ rotate([90,0,90])
+ S1930_Negative();
+ }
}
//TestWall();