define wiring in separate file
[challenge-bot] / 3d-printables / motor-mount.scad
index b15e5a7b7f9483a187f1cf65672b0936c68c68b6..f225e908b1b24aeb91c634890ea031fde6f31a1d 100644 (file)
@@ -1,42 +1,31 @@
+/*
+  Copyright (C) 2015 Daniel Watson
+  See the end of the file for license conditions.
+*/
 // challenge-bot
 // GNU AGPLv3 (or later at your option)
-// project available at these locations:
-// https://gitorious.org/ozzloy/challenge-bot
-// https://github.com/waynegramlich/challenge-bot
+// project available here:
+// https://challenge-bot.com/
 
 $fn = 60;
 
-include <motor-mount-dimensions.scad>
+include <motor-mount-data.scad>
 
-module motor_holes(){
-  collar_x_offset = 10.8;
-  nubbin_x_offset = 22.23;
-  // actual motor screw holes are 0.2 further than spec says
-  screw_x_offset = 30.81 + 0.2;
-  screw_y_offset = 17.44 / 2;
+motor_mount();
 
-  translate([collar_x_offset, 0, 0]){
-    cylinder(r = collar_radius, h = mount_total_z + 0.1);}
-  translate([nubbin_x_offset, 0, 0]){
-    cylinder(r = nubbin_radius, h = mount_total_z + 0.1);}
-  translate([screw_x_offset, 0, 0]){
-    translate([0, screw_y_offset, 0]){
-      cylinder(r = screw_radius, h = mount_total_z + 0.1);}
-    translate([0, -screw_y_offset, 0]){
-      cylinder(r = screw_radius, h = mount_total_z + 0.1);}}}
+/*
+  This file is part of challenge-bot.
 
-module bracket_holes(){
-  translate([6.2, 0, 0])
-    cylinder(r = _6_radius, h = mount_total_z + 0.1);
-  translate([mount_total_x - 6.2, 0, 0])
-    cylinder(r = _6_radius, h = mount_total_z + 0.1);}
+  Challenge-bot is free software: you can redistribute it and/or modify
+  it under the terms of the GNU Affero General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
 
-module motor_mount(){
-  difference(){
-    cube([mount_total_x, mount_total_y, mount_total_z]);
-    translate([0, 6.2, -0.05]){
-      bracket_holes();}
-    translate([1, mount_total_y - motor_height / 2 - 3, -0.05]){
-      motor_holes();}}}
+  GNU Affero Emacs is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU Affero General Public License for more details.
 
-motor_mount();
+  You should have received a copy of the GNU Affero General Public License
+  along with challenge-bot.  If not, see <http://www.gnu.org/licenses/>.
+*/