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 | |
df8e764d |
24 | cube([main_body_width_measured, |
25 | main_body_length_measured, |
6123c3ad |
26 | main_body_height_measured], |
27 | center = true); |
9e3e6b08 |
28 | rotate(45){ |
fbb05bf9 |
29 | cube([arm_width_measured, |
30 | arm_length_measured, |
31 | arm_height_measured], |
32 | center = true);} |
b1297c9e |
33 | rotate(-45){ |
fbb05bf9 |
34 | cube([arm_width_measured, |
35 | arm_length_measured, |
36 | arm_height_measured], |
37 | center = true);} |
d8418529 |
38 | // TODO: move motor out by motor_radius amount |
39 | // TODO: move motor up to match physical placement more accurately |
40 | rotate(45) { |
41 | translate([arm_length_measured / 2, 0, 0]){ |
42 | cylinder(h = motor_height_measured, |
43 | r = motor_radius_measured, |
44 | center = true); } } |
df8e764d |
45 | |
46 | /* |
47 | This file is part of 3d-printables. |
48 | |
49 | 3d-printables is free software: you can redistribute it and/or modify |
50 | it under the terms of the GNU Affero General Public License as published by |
51 | the Free Software Foundation, either version 3 of the License, or |
52 | (at your option) any later version. |
53 | |
54 | 3d-printables is distributed in the hope that it will be useful, |
55 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
56 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
57 | GNU Affero General Public License for more details. |
58 | |
59 | You should have received a copy of the GNU Affero General Public License |
60 | along with challenge-bot. If not, see <http://www.gnu.org/licenses/>. |
61 | */ |