chiark / gitweb /
anke-gps-bracket: NestleCube top size adjustments
[reprap-play.git] / anke-gps-bracket.scad
index b92d16eb0a12e295608ef74c8486ec7788a939b7..8d7c5428d3b4857ccb533470a52ff90b59cdcfa6 100644 (file)
@@ -1,5 +1,9 @@
 // -*- C -*-
 
+// todo
+// nestlecube does not fit
+// nestlecube doveclip at wrong angle
+
 include <doveclip.scad>
 
 // Dimensions of the main GPS body
@@ -39,10 +43,10 @@ pluggapd =    5;
 // Dimensions of the hole in the tray
 //   width and height (vertical) at the top
 nestleh = 53;
-nestlew = 55.4 - 0.5;
+nestlew = 60.9;
 //   depths (back to front distance):
-nestledl = 38.8 - 0.5;
-nestledr = 42.7 - 0.5;
+nestledl = 38.3 + 1.9;
+nestledr = 42.2 + 1.7;
 //   differences in width, depth, at bottom:
 nestledwl = 3.0;
 nestledwr = 2.4;
@@ -53,11 +57,12 @@ nestleddbr = 3.6;
 nestlewallmin = 4;
 nestleceilmin = 4;
 
-// Adjustment for the GPS attitude
+// Adjustment for the GPS attitude and position
 gpsazimuth = 45;
 gpselevation = 40;
 gpsrightwardoffset = 5;
 gpsrearwardoffset = 2;
+gpsrightwardoffsetonbar = 0;
 
 // Amount of wire protrusion to allow for
 plugwiremoreh = 25;
@@ -79,6 +84,8 @@ holderwallt = 2.5;
 holderbackt = 2.8;
 holderdccount = 2;
 holderdoveclipl = 15;
+chassish = 13;
+chassist = 13;
 
 // Consequential values
 holderdcw = DoveClipPairSane_width(holderdccount);
@@ -249,7 +256,7 @@ module NestleCubePin(){ ////toplevel
   DoveClipPin(nestledoveclipw*0.4);
 }
 
-module HolderSide(){
+module HolderSideL(){ ////toplevel
   minz = -(bezelw - holderbezelmore) - holderbackt;
   holdert = holder_outert + holderwallt*2;
   cylr = 0.5*sqrt(holderdcw*holderdcw + holderdoveclipl*holderdoveclipl);
@@ -277,8 +284,47 @@ module HolderSide(){
   }
 }
 
+module HolderSideR(){ ////toplevel
+  mirror([0,1,0]) HolderSideL();
+}
+
+module ChassisBar(){ ////toplevel
+  dist = holder_outerw - 2*((bezelw - holderbezelmore) + DoveClip_depth());
+  cliph = holderdcw;
+  for (mir=[0,1]) {
+    mirror([mir,0,0]) {
+      translate([dist/2, cliph/2, 0])
+       DoveClipPairSane(h=holderdoveclipl, count=holderdccount);
+      translate([-1, 0, 0])
+       cube([dist/2 - DoveClip_depth() + 1.1, chassish, chassist]);
+    }
+  }
+  translate([-gpsrightwardoffsetonbar, -DoveClip_depth(), 0])
+    rotate([0,0,-90])
+    DoveClipPairSane(h=nestledoveclipw, count=3,
+                    baseextend=chassist/2);
+}
+
+module HolderSidePin(){ ////toplevel
+  DoveClipPin(holderdoveclipl*0.5);
+}
+
+module Pins(){ ///toplevel
+  for (i=[1:4*holderdccount]) {
+    translate([i*10, 0, 0]) HolderSidePin();
+  }
+  for (i=[1:6]) {
+    translate([i*10, 20, 0]) NestleCubePin();
+  }
+}
+
 //GpsPlugT();
 //GpsAssembled();
 //GpsBody();
 //NestleCube();
 //NestleCubePin();
+//HolderSideL();
+//HolderSideR();
+//HolderSidePin();
+//ChassisBar();
+//Pins();