seveibar/pd-dual-stepper-controller
Bottom-side PCB silkscreen artwork consisting of embedded mirrored TS Circuit SVG logos, with via-clearance-aware lower-board placement.
- Version
- 0.1.0
- License
- unset
- Stars
- 0
mechanical/motor2-placement.ts
import { revisionPlacement } from "./revision-placement";
/** Channel 2 occupies the new right-hand PCB area. Coordinates are in mm. */
export function motor2Placement(name: string, origin = {x: 0, y: 0}) {
const originalName = name.replace(/_M2$/, "");
const p = revisionPlacement(originalName);
const overrides: Record<string, [number, number, number]> = {
Q_PD_ENABLE: [29, 1, 270],
R_PD_ENABLE_PU: [32, 2, 0],
};
const [x,y,rotation] = overrides[originalName] ?? [p.pcbX + 30, p.pcbY, p.pcbRotation];
return {pcbX: x-origin.x, pcbY: y-origin.y, pcbRotation: rotation};
}