$fn=30;

wall = 3;
width = 70;

lock_box_height = 27+6;
servo_depth = 10;
servo_hole = 2.5+0.5;

screw_cutout_width = 8;
screw_cutout_cc = 45;

tolerance = 0.3;

module cover (){
	// Main mounting plate
	difference(){	
		union(){
			cube([width-wall*2-tolerance,lock_box_height-wall*2-tolerance,wall], center = true);
			translate([screw_cutout_cc/2,0,0])cube([screw_cutout_width-tolerance, lock_box_height, wall], center=true);
			translate([-screw_cutout_cc/2,0,0])cube([screw_cutout_width-tolerance, lock_box_height, wall], center=true);
		}
		// Motor box screw cutout
		translate([-screw_cutout_cc/2,lock_box_height/2-wall,0])cylinder(r=servo_hole/2, h = servo_depth, center=true);
		translate([screw_cutout_cc/2,lock_box_height/2-wall,0])cylinder(r=servo_hole/2, h = servo_depth, center=true);
		translate([-screw_cutout_cc/2,-lock_box_height/2+wall,0])cylinder(r=servo_hole/2, h = servo_depth, center=true);
		translate([screw_cutout_cc/2,-lock_box_height/2+wall,0])cylinder(r=servo_hole/2, h = servo_depth, center=true);
	}
}

cover();
