feat: S12 — vcucmd 3-state command from VCU (replaces binary vcustop) #10

Open
bastian wants to merge 3 commits from feat/s12-vcucmd-3state into fix/canmap-revert-clear-add-reentrancy-guard
Showing only changes of commit a30cded074 - Show all commits
+9 -1
View File
@@ -414,9 +414,17 @@ void ChargerStateMachine()
} }
else else
{ {
dcCurController.SetRef(0); // Final ramp tick: clear GPIOs (cuts AC enable; output decays
// through filter caps) and restore the PI reference to the
// current idcspnt/idclim so the NEXT EVSEACTIVATE entry
// doesn't sip at 0 A. Param::Change only fires on parameter
// changes; a normal restart cycle never touches idcspnt or
// idclim, so without this restore the PI controller stays
// pinned at 0 across the cycle. Iteration O bug — bench-
// confirmed 0.1 kW sip on limit-raise from COMPLETE.
DigIo::acpres_out.Clear(); DigIo::acpres_out.Clear();
DigIo::evseact_out.Clear(); DigIo::evseact_out.Clear();
dcCurController.SetRef(MIN(Param::Get(Param::idcspnt), Param::Get(Param::idclim)));
completeRampTicks = 0; completeRampTicks = 0;
completeRampOriginalRef = 0; completeRampOriginalRef = 0;
state = STOP; state = STOP;