Generalize `i_am_box' into `frame_type' option
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 21 Feb 2016 19:25:03 +0000 (14:25 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 21 Feb 2016 19:25:03 +0000 (14:25 -0500)
This will be used to add support for a 2020 aluminum extrusion z-axis.

box_frame/configuration.scad.dist
box_frame/inc/conf_frame.scad [new file with mode: 0644]
box_frame/inc/settings.scad

index 2bfbb85..54ed572 100644 (file)
@@ -92,8 +92,8 @@ carriage_l_base = 50;
 
 use_fillets = 1;
 
-// set to 0 for single plate (affects z axis and screws that attach RP parts to frame)
-i_am_box = 0;
+// set to type of frame used (affects z axis and screws that attach RP parts to frame)
+frame_type = frame_single;
 
 // if you do your own plate and can move bottom Z screws 5mm up set this to 0 to
 // get stronger motor mount. Only for i_am_box = 0
@@ -121,6 +121,7 @@ y_threaded_rod_long_r = 5.4;
 // Use 12 for single plate
 // or 20 if you want to use the Y lm8uu holders
 // (extras/bearing-holder-single-plate-y)
+// For an aluminum extrusion frame, set this to your extrusion diameter
 board_thickness = 12;
 
 // Segments of small holes. some poeple claim that a low value makes them easier to print.
diff --git a/box_frame/inc/conf_frame.scad b/box_frame/inc/conf_frame.scad
new file mode 100644 (file)
index 0000000..12c52e9
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2016  Clinton Ebadi <clinton@unknownlamer.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// frame types
+frame_single    = 0; // single plate frame
+frame_box       = 1; // box frame
+frame_alu       = 2; // alminum extrusion frame (set board_width = extrusion_width + 0.25)
index dbf1797..af60400 100644 (file)
@@ -13,3 +13,6 @@ xy_delta = ((bushing_xy[1] <= 7.7) ? 0 : bushing_xy[1] - 7.7) * 0.9;
 z_delta = (bushing_z[1] <= 7.7) ? 0 : bushing_z[1] - 7.7;
 
 m3_nut_diameter_bigger = ((m3_nut_diameter / 2) / cos (180 / 6)) * 2;
+
+// deprecated
+i_am_box = (frame_type == frame_box);