Commit | Line | Data |
---|---|---|
df8e764d | 1 | /* GNU AGPLv3 (or later at your option) |
2 | see bottom for more license info */ | |
3 | ||
4 | /* protective housing for crazyflie 2.0. | |
5 | ||
6 | reinforce the arms so they do not snap. | |
7 | ||
8 | keep the props up high so they do not get hairs from the ground | |
9 | wrapped around the motor shaft. | |
10 | */ | |
11 | ||
df8e764d | 12 | main_body_width_measured = 28.0; |
13 | main_body_length_measured = 31.0; | |
df8e764d | 14 | main_body_height_measured = 1.5; |
15 | ||
e9c572e7 | 16 | arm_width_measured = 3.6; |
17 | arm_length_measured = 79.0; | |
18 | arm_height_measured = main_body_height_measured; | |
df8e764d | 19 | |
d8418529 | 20 | motor_diameter_measured = 7; |
21 | motor_height_measured = 17; | |
22 | motor_radius_measured = motor_diameter_measured / 2; | |
23 | ||
b2b49e2c MC |
24 | /*this is how far down the motor sticks below the circuit board*/ |
25 | motor_z_offset_measured = 5; | |
26 | ||
27 | motor_z_translate = (motor_height_measured - arm_height_measured) / 2 - motor_z_offset_measured; | |
28 | ||
df8e764d | 29 | cube([main_body_width_measured, |
30 | main_body_length_measured, | |
6123c3ad | 31 | main_body_height_measured], |
32 | center = true); | |
9e3e6b08 | 33 | rotate(45){ |
fbb05bf9 | 34 | cube([arm_width_measured, |
35 | arm_length_measured, | |
36 | arm_height_measured], | |
37 | center = true);} | |
b1297c9e | 38 | rotate(-45){ |
fbb05bf9 | 39 | cube([arm_width_measured, |
40 | arm_length_measured, | |
41 | arm_height_measured], | |
42 | center = true);} | |
d8418529 | 43 | // TODO: move motor out by motor_radius amount |
d8418529 | 44 | rotate(45) { |
b2b49e2c | 45 | translate([arm_length_measured / 2, 0, motor_z_translate]){ |
d8418529 | 46 | cylinder(h = motor_height_measured, |
47 | r = motor_radius_measured, | |
48 | center = true); } } | |
df8e764d | 49 | |
50 | /* | |
51 | This file is part of 3d-printables. | |
52 | ||
53 | 3d-printables is free software: you can redistribute it and/or modify | |
54 | it under the terms of the GNU Affero General Public License as published by | |
55 | the Free Software Foundation, either version 3 of the License, or | |
56 | (at your option) any later version. | |
57 | ||
58 | 3d-printables is distributed in the hope that it will be useful, | |
59 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
60 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
61 | GNU Affero General Public License for more details. | |
62 | ||
63 | You should have received a copy of the GNU Affero General Public License | |
64 | along with challenge-bot. If not, see <http://www.gnu.org/licenses/>. | |
65 | */ |