@@ -112,9 +112,7 @@ outer_exclusion_radius = flap_pitch_radius + flap_height + 2;
112
112
113
113
front_forward_offset = flap_pitch_radius + flap_thickness/2 ;
114
114
115
- flap_notch = sqrt (spool_outer_radius* spool_outer_radius - flap_pitch_radius* flap_pitch_radius);
116
- flap_notch_depth = 3 ;
117
-
115
+ flap_notch_height = (flap_notch_height_auto == true ) ? sqrt (spool_outer_radius* spool_outer_radius - flap_pitch_radius* flap_pitch_radius) : flap_notch_height_default;
118
116
119
117
spool_width = flap_width - flap_notch_depth* 2 + flap_width_slop + thickness* 2 ;
120
118
legacyAssert(spool_width >= flap_width, "Flap is wider than spool!" );
@@ -206,7 +204,7 @@ echo(front_window_height=front_window_lower+front_window_upper);
206
204
echo (front_forward_offset= front_forward_offset);
207
205
echo (flap_exclusion_radius= exclusion_radius);
208
206
echo (flap_hole_radius= flap_hole_radius);
209
- echo (flap_notch = flap_notch );
207
+ echo (flap_notch_height = flap_notch_height );
210
208
211
209
212
210
module standard_m4_bolt(nut_distance=-1) {
@@ -354,9 +352,9 @@ module flap() {
354
352
}
355
353
}
356
354
translate ([- eps, flap_pin_width])
357
- square([eps + flap_notch_depth, flap_notch ]);
355
+ square([eps + flap_notch_depth, flap_notch_height ]);
358
356
translate ([flap_width - flap_notch_depth, flap_pin_width])
359
- square([eps + flap_notch_depth, flap_notch ]);
357
+ square([eps + flap_notch_depth, flap_notch_height ]);
360
358
}
361
359
}
362
360
}
0 commit comments