code wiki / (root) / nx_moonraker_motion_parse_test.nx

nx_moonraker_motion_parse_test.nx

buildroot/runtime/nx_moonraker_motion_parse_test.nx

4522 B116 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic moonraker
docsdependenciesstructsconstsfunctions

about

nx_moonraker_motion_parse_test.nx -- motion_report -> Q14 fields. Closed-form invariants: (a) Bad inputs -> BAD_INPUT (b) No motion_report -> NO_OBJECT, outputs untouched (c) Canonical motion_report -> OK, all 5 outputs populated (d) Float-to-Q14 precision: 120.5 -> 1974272 (e) live_extruder_position overrides position[3] (f) Negative position handled (e.g. retracted extruder) (g) Integer-only number (no fraction) handled (h) Three-digit fractional precision (0.125 -> 2048) expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_moonraker_telemetry_parse.nx nx_moonraker_motion_parse_test

imports: nx_syscalls.nxnx_moonraker_telemetry_parse.nx

imported by: nobody (leaf or entry point)

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

main mk_box sys_mmap nx_moonraker_parse_motion mr_p_find mr_p_cstr_len mr_p_byte_eq mr_p_match_brace mr_p_extract_live_position mr_p_find ↻ mr_p_parse_q14 mr_p_extract_q14_in_scope mr_p_find ↻ mr_p_cstr_len ↻ mr_p_parse_q14 ↻ cstr_len

structs

none

consts

19const Q14: i64 = 16384

functions

21func cstr_len(s: *u8) -> i64
called by 1: main
27func mk_box() -> *i64
called by 1: main calls 1: sys_mmap
33func main() -> i64