1 // 3/16 inch in mm deck_depth = 4.7625;
2 // 1/4 inch in mm = 6.35
3 // subtract a little to be a squeeze fit
4 deck_depth
= 4.7625 - 0.4;
5 // sonar sensor measurements taken with calipers:
6 // 10.82 in between, 42.33 outside, 15.82 diameter
7 // measured diameter of 15.82 with calipers,
8 // but when printed ends up being too small, so add some
9 sonar_diameter
= 15.82 + 0.4;
10 sonar_radius
= sonar_diameter
/ 2;
12 between_sonar_centers
= sonar_diameter
+ 10.82;
13 // the sonar cylinders are placed on the pcb at slightly different positions
14 // from one sensor to the next, so this allows for that variance.
15 between_sonar_centers_variance
= 2;
16 // keep at least this much plastic surrounding the sonar cylinder on all sides
18 sonar_holder_length
= buffer
+ between_sonar_centers
+ sonar_diameter
+ buffer
;
19 sonar_holder_width
= buffer
+ sonar_diameter
+ buffer
;
20 // sonar_holder_depth is deck_depth minus a little bit to make arm fit
22 sonar_holder_depth
= deck_depth
- 0.7875;
24 deck_holder_length
= sonar_holder_depth
* 2 + deck_depth
+ 15;