3 // Dimensions of the main GPS body
8 // Dimensions of the bezel area round the edges
13 // Dimensions of the speaker at the back
18 // Dimensions of the plug and wire
26 // Amount of wire protrusion to allow for
33 // Dimensions for strength only
36 plugstrutt = min(outert, 5);
38 module GpsPlugPlug(slop){
39 effhslop = slop - plughstep;
40 effplugw = plugw + slop*2;
41 effplugh = plugh + effhslop*2;
42 translate([plug2lhs-slop, plug2bot-effhslop, -1])
43 cube([effplugw, effplugh, outert+2]);
50 cube([outerw, outerh, outert]);
51 translate([bezelw, bezelboth, screent])
52 cube([outerw-bezelw*2, outerh-bezelboth-bezeltoph, outert]);
53 translate([outerw-spkr2rhs, spkr2bot, -1])
54 cylinder(r=spkrdia/2, h=outert+2);
56 translate([plug2lhs+plugw/2, plug2bot+plugh/2, 0.05])
57 cylinder(r=(plugw+plugh)/2, h=outert-0.02);
58 for (x=[plug2lhs-plugstrutw, plug2lhs+plugw])
59 translate([x, 0.1, 0.05])
60 cube([plugstrutw, outerh-0.2, plugstrutt-0.10]);
67 plugwireh = plug2bot + plugwiremoreh;
68 GpsPlugPlug(-plugslop);
69 mirror([0,0,1]) translate([plug2lhs, plug2bot, 0]) {
70 cube([plugw, plugh, plugtotald-0.05]);
71 translate([0, -plugwireh, pluggapd])
72 cube([plugw, plugwireh+0.05, plugtotald-pluggapd]);
76 module GpsAssembled(){ ////toplevel
81 module GpsPlugT(){ ////toplevel
82 rotate([0,-90,0]) GpsPlug();