nx_pcb_cam_gate.nx
buildroot/runtime/nx_pcb_cam_gate.nx
about
nx_pcb_cam_gate.nx -- R2 GATE of the Omniforge PCB/EDA leg: isolation-milling CAM (in-house loop).
Builds the demo board, computes isolation toolpaths via nx_pcb_cam, writes the real .gcode, then
VERIFIES: the offset coordinates are reconstructed EXACTLY from the integer model (axis-aligned
offsets are exact: hw+tool_r added/subtracted to a coordinate), pass count == 2*traces + pads,
retract count is consistent, the G21/G90/spindle/M2 headers are present, and a NEGATIVE CONTROL
(an offset wrong by 1um) is ABSENT. Proves design->in-house-millable G-code with no external fab,
integer-only/no-float. 100% sovereign. license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_pcb_cam.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 11 | func sw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 12 | func sn(v: i64) -> i64 |
| 23 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 25 | func contains(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 39 | func count_occur(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 54 | func expect_xy(nb: *u8, x_um: i64, y_um: i64) -> i64 |
| 63 | func check(name: *u8, cond: i64, tot: *i64) -> i64 |
| 70 | func main() -> i64 |