ignore generated model files
[ozzloy@gmail.com/3d-printables] / crazyflie-2.0-housing.scad
index 3d61effe57ebb6df7668507d7c060255b4f819fd..1bbd7e58d17099282dc089b029dd57349e8673c4 100644 (file)
@@ -40,12 +40,39 @@ rotate(-45){
         arm_length_measured,
         arm_height_measured],
        center = true);}
-// TODO: move motor out by motor_radius amount
+
 rotate(45) {
-  translate([arm_length_measured / 2, 0, motor_z_translate]){
+  translate([arm_length_measured / 2 + motor_radius_measured,
+             0,
+             motor_z_translate]){
+    cylinder(h = motor_height_measured,
+             r = motor_radius_measured,
+             center = true,
+             $fn = 50); } }
+rotate(45 + 90) {
+  translate([arm_length_measured / 2 + motor_radius_measured,
+             0,
+             motor_z_translate]){
+    cylinder(h = motor_height_measured,
+             r = motor_radius_measured,
+             center = true,
+             $fn = 50); } }
+rotate(45 + 90 * 2) {
+  translate([arm_length_measured / 2 + motor_radius_measured,
+             0,
+             motor_z_translate]){
+    cylinder(h = motor_height_measured,
+             r = motor_radius_measured,
+             center = true,
+             $fn = 50); } }
+rotate(45 + 90 * 3) {
+  translate([arm_length_measured / 2 + motor_radius_measured,
+             0,
+             motor_z_translate]){
     cylinder(h = motor_height_measured,
              r = motor_radius_measured,
-             center = true); } }
+             center = true,
+             $fn = 50); } }
 
 /*
   This file is part of 3d-printables.