code wiki / (root) / nx_print_runtime_zback_test.nx

nx_print_runtime_zback_test.nx

buildroot/runtime/nx_print_runtime_zback_test.nx

4734 B97 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic print
docsdependenciesstructsconstsfunctions

about

nx_print_runtime_zback_test.nx -- Z-backward jump detection. Spaghetti progenitor: head crashes a tower mid-print, Klipper recovers by rehoming, Z snaps from current layer back to ~0. When the print resumes it does so off-position = spaghetti. Closed-form invariants: (a) Normal layer progression: no fire (b) Tiny Z-hop during travel (< tolerance): no fire (c) Z reverse > tolerance: NX_RT_ISSUE_Z_BACKWARD fires (d) Z_BACKWARD takes precedence over STUCK_LAYER (e) After backward event, monitor recovers (next normal event no fire) (f) Setter rejects negative tolerance (g) Tighter tolerance catches smaller backward jumps expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_print_runtime_monitor.nx nx_print_runtime_zback_test.nx

imports: nx_syscalls.nxnx_print_runtime_monitor.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_runtime_monitor_new sys_mmap nx_runtime_monitor_step nx_runtime_monitor_set_z_b

structs

none

consts

22const Q14: i64 = 16384

functions

24func main() -> i64