Fixed pico clearance

This commit is contained in:
2025-08-31 16:31:10 +02:00
parent 69f7dbaea7
commit 5debc685dd

View File

@@ -175,10 +175,11 @@ module case(){
$picoLength = 53; $picoLength = 53;
// Move to position along the wall the usb will be // Move to position along the wall the usb will be
// Hole should be centered on the pico usb // Hole should be centered on the pico usb
holeOffset = -$usbOffsetFromPcb - (($usbHoleHeight - picoUsbBody.z )/2);
translate([ translate([
$topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2), $topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2),
$switchDistance * $rows, $switchDistance * $rows,
-$usbOffsetFromPcb - (($usbHoleHeight - picoUsbBody.z )/2) holeOffset
]){ ]){
// Create a hole for the usb cable to go through // Create a hole for the usb cable to go through
cube([ cube([
@@ -190,7 +191,7 @@ module case(){
translate([ translate([
-(($picoWidth - $usbHoleWidth)/2), -(($picoWidth - $usbHoleWidth)/2),
$clearance - $picoLength, $clearance - $picoLength,
+$usbOffsetFromPcb - $picoPcbClearanceFromBase -holeOffset - $picoPcbClearanceFromBase
]) ])
// Make clearance downwards for the pico board // Make clearance downwards for the pico board
cube([ cube([
@@ -273,6 +274,6 @@ module pcb() {
} }
%pcb(); *%pcb();
%topDampeners(); *%topDampeners();
case(); case();