Motor lugs - cutout for the compact nut seat tilted twice
In openscad/libs/compact_nut_seat.scad
the module module motor_lugs(h, tilt=0, angle=0){
makes motor lugs that sit against the actuator housing. In the module the lugs are built and a clearance is cut out for the nut_seat_void
.
Because the actuator can be at an angle, the parameter tilt
is used to tilt the motor lugs. The lugs are built upright and then the tilt is applied to the overall structure by a rotation applied to the whole module, line 377:
rotate_x(tilt){
However, when nut_seat_void
is hollowed out it is applied inside this rotation transformation and it is set at the angle tilt
when the rest of the structure is being defined upright. This effectively gives the final orientation of the cut out at twice the intended angle.
From line 398:
//hollow inside of the structure
rotate(-angle){
nut_seat_void(h=h, tilt=tilt);
}
This should have tilt=0
.
This bug does not currently affect the microscope because only the z-axis is tilted and the motor lugs are placed on the upper side of the tilted actuator.