code wiki / _hdl_build / nx_batt_recondition.nx
nx_batt_recondition.nx
buildroot/runtime/_hdl_build/nx_batt_recondition.nx
about
nx_batt_recondition.nx -- R2 RECLAIM / RECONDITION WORKFLOW. Given a triage verdict (R1 nx_batt_intake), drives
the staged restore and ROUTES EVERY charge step through the never-ignite spine (R0 nx_battery_safety): a step that
would exceed the safety envelope (rate / voltage / thermal) is REFUSED and the workflow aborts SAFE -- it can NEVER
drive an unsafe charge. UNSAFE-REJECT / RETIRE-RECYCLE packs are routed to recycle and NEVER charged (safety
screened first = the #26 NEVER-IGNITE priority). Composes R0 + R1; this is the rung that makes "EGO-grade restore"
real AND safe. license_tier: ORIGINAL
dependencies 3 imports · 1 importers
imports: nx_intent.nxnx_battery_safety.nxnx_batt_intake.nx
imported by: nx_batt_recondition_test.nx
structs
| none |
consts
| 11 | const NX_RW_DONE_RESTORED: i64 = 0 // workflow finished, pack restored to service |
| 12 | const NX_RW_DONE_RETIRED: i64 = 1 // routed to safe recycle (zero charge commands issued) |
| 13 | const NX_RW_REFUSED_UNSAFE: i64 = 2 // a step hit the safety wall -> aborted safe (never-ignite) |
| 14 | const NX_RW_BAD_VERDICT: i64 = 3 |
functions
| 18 | func nx_recondition_run(verdict: i64, env: *NxBatterySafetyEnvelope, log: *NxBatteryCommandLog, |