Forráskód Böngészése

everything but pin and stopper

Wisam Reid 11 éve
szülő
commit
361b64e702
1 módosított fájl, 18 hozzáadás és 2 törlés
  1. 18 2
      calibration/test_rig_gimbal_clip.scad

+ 18 - 2
calibration/test_rig_gimbal_clip.scad

@@ -7,10 +7,26 @@
 $fn=64;
 
 // Build Test Rig
-test_rig(20,20,20,1,1,5);
+test_rig(20,20,20,1,10,1,5);
 
-module test_rig (diameter_clip, diameter_gimbal, clip_depth, taper_ratio, center_thickness, thickness) {
+module test_rig (diameter_clip, diameter_gimbal, clip_depth, taper_ratio, capsule_size,center_thickness, thickness) {
     translate([((thickness) + center_thickness)/2,0,0]) {
+      // GIMBAL 
+      difference(){ // cutout center for capsule
+            // outer part of mic clip
+            //translate([-(diameter_clip+thickness)/2,0,0]){
+            translate([-(clip_depth + (diameter_gimbal/2)),0,0]){
+                    intersection() { // intersect with sphere for rounded edges
+                        sphere(r=(capsule_size/2)+thickness, center=true);
+                        cylinder(r=(capsule_size/2)+thickness, h=thickness, center=true);
+                    }
+            }
+      
+            // inner cutout for gimbal
+            translate([-(clip_depth + (diameter_gimbal/2)),0,0]){
+                cylinder(d=capsule_size,h=diameter_clip, center=true);
+            }
+        }
         difference(){ // cut gimbal pinhole and inner mic clip radius
             union(){ // unite gimbal bracket with mic clip