chiark / gitweb /
anke-gps-bracket: NestleCube: add doveclip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 30 Nov 2012 21:50:10 +0000 (21:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 30 Nov 2012 21:50:10 +0000 (21:50 +0000)
anke-gps-bracket.scad

index 37c4c7152b273c00f04ccacb4d6f50b80808e342..5409c5e25f1be6b829affe282d045a8c568b22cd 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
+include <doveclip.scad>
+
 // Dimensions of the main GPS body
 outerw = 120 + 2.5;
 outerh =  75 - 0.2;
@@ -41,6 +43,11 @@ nestleddbr = 3.6;
 nestlewallmin = 4;
 nestleceilmin = 4;
 
+// Adjustment for the GPS attitude
+gpsazimuth = 45;
+gpsrightwardoffset = 5;
+gpsrearwardoffset = 2;
+
 // Amount of wire protrusion to allow for
 plugwiremoreh = 25;
 
@@ -53,6 +60,7 @@ bodylhsrhsslop = 0.5;
 screent = 1.0;
 plugstrutw = 4;
 plugstrutt = min(outert, 5);
+nestledoveclipw = 20;
 
 module GpsPlugPlug(slop){
   effhslop = slop - plughstep;
@@ -206,6 +214,12 @@ module NestleCube(){
       rotate([0,0,90]) NestleCubeCutout(cutd0, cutd1, nestlew);
     }
   }
+
+  translate([gpsrightwardoffset,-gpsrearwardoffset,0])
+    rotate([0,0,gpsazimuth])
+    translate([nestledoveclipw/2,0,DoveClip_depth()-0.5])
+    rotate([0,-90,0])
+    DoveClipPairSane(count=3, h=nestledoveclipw);
 }
 
 //GpsPlugT();