chiark / gitweb /
anke-gps-bracket: HolderSide
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Dec 2012 00:02:32 +0000 (00:02 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Dec 2012 00:02:32 +0000 (00:02 +0000)
anke-gps-bracket.scad

index 08b5b4f..b92d16e 100644 (file)
@@ -8,6 +8,11 @@ outerh =  75;
 outert =  15;
 outerbackbevel = 3;
 
+// Dimensions for the holder
+holder_outerw = outerw - 0.0;
+holder_outerh = outerh + 0.0;
+holder_outert = outert + 0.0;
+
 // Dimensions for the model
 model_outerw = outerw + 2.5;
 model_outerh = outerh - 0.2;
@@ -50,6 +55,7 @@ nestleceilmin = 4;
 
 // Adjustment for the GPS attitude
 gpsazimuth = 45;
+gpselevation = 40;
 gpsrightwardoffset = 5;
 gpsrearwardoffset = 2;
 
@@ -60,12 +66,22 @@ plugwiremoreh = 25;
 plugslop = 0.5;
 plughstep = 1.5;
 bodylhsrhsslop = 0.5;
+holderhgap = 5;
+holderbezelmore = 2;
 
 // Dimensions for strength only
 screent = 1.0;
 plugstrutw = 4;
 plugstrutt = min(model_outert, 5);
 nestledoveclipw = 20;
+holderh = model_outerh * 0.5;
+holderwallt = 2.5;
+holderbackt = 2.8;
+holderdccount = 2;
+holderdoveclipl = 15;
+
+// Consequential values
+holderdcw = DoveClipPairSane_width(holderdccount);
 
 module GpsPlugPlug(slop){
   effhslop = slop - plughstep;
@@ -233,6 +249,34 @@ module NestleCubePin(){ ////toplevel
   DoveClipPin(nestledoveclipw*0.4);
 }
 
+module HolderSide(){
+  minz = -(bezelw - holderbezelmore) - holderbackt;
+  holdert = holder_outert + holderwallt*2;
+  cylr = 0.5*sqrt(holderdcw*holderdcw + holderdoveclipl*holderdoveclipl);
+  difference(){
+    translate([-holderh,
+              -holderwallt,
+              minz]) {
+      cube([holderh + holderhgap + cylr,
+           holdert,
+           -minz]);
+      translate([holderh + holderhgap + cylr, holdert/2, 0]) {
+       cylinder(r=cylr, h=-minz);
+       rotate([0,0,gpselevation])
+         translate([0, -holderdoveclipl/2, -minz + DoveClip_depth()])
+         rotate([0,-90,-90])
+         DoveClipPairSane(count=holderdccount, h=holderdoveclipl);
+      }
+    }
+    translate([-holderh-1,
+              0,
+              minz + holderbackt])
+      cube([holderh+1,
+           holder_outert,
+           bezelw]);
+  }
+}
+
 //GpsPlugT();
 //GpsAssembled();
 //GpsBody();