// -*- C -*-
+// todo
+// nestlecube does not fit
+// nestlecube doveclip at wrong angle
+
include <doveclip.scad>
// Dimensions of the main GPS body
// 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;
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;
holderbackt = 2.8;
holderdccount = 2;
holderdoveclipl = 15;
+chassish = 13;
+chassist = 13;
// Consequential values
holderdcw = DoveClipPairSane_width(holderdccount);
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);
}
}
+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();