projects
/
ozzloy@gmail.com
/
3d-printables
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved motor up to match how it is on the crazyflie
[ozzloy@gmail.com/3d-printables]
/
crazyflie-2.0-housing.scad
diff --git
a/crazyflie-2.0-housing.scad
b/crazyflie-2.0-housing.scad
index a23c55d1d739c91e34141cd20f7198712434e777..3d61effe57ebb6df7668507d7c060255b4f819fd 100644
(file)
--- a/
crazyflie-2.0-housing.scad
+++ b/
crazyflie-2.0-housing.scad
@@
-21,6
+21,11
@@
motor_diameter_measured = 7;
motor_height_measured = 17;
motor_radius_measured = motor_diameter_measured / 2;
motor_height_measured = 17;
motor_radius_measured = motor_diameter_measured / 2;
+/*this is how far down the motor sticks below the circuit board*/
+motor_z_offset_measured = 5;
+
+motor_z_translate = (motor_height_measured - arm_height_measured) / 2 - motor_z_offset_measured;
+
cube([main_body_width_measured,
main_body_length_measured,
main_body_height_measured],
cube([main_body_width_measured,
main_body_length_measured,
main_body_height_measured],
@@
-36,9
+41,8
@@
rotate(-45){
arm_height_measured],
center = true);}
// TODO: move motor out by motor_radius amount
arm_height_measured],
center = true);}
// TODO: move motor out by motor_radius amount
-// TODO: move motor up to match physical placement more accurately
rotate(45) {
rotate(45) {
- translate([arm_length_measured / 2, 0,
0
]){
+ translate([arm_length_measured / 2, 0,
motor_z_translate
]){
cylinder(h = motor_height_measured,
r = motor_radius_measured,
center = true); } }
cylinder(h = motor_height_measured,
r = motor_radius_measured,
center = true); } }