Add TonHe 30kW PSU control with LV/HV restart (v1.0.37).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
raduet
2026-09-23 14:05:53 +02:00
co-authored by Cursor
parent 644fcf1692
commit 10691b77f2
15 changed files with 10132 additions and 8832 deletions
+3 -1
View File
@@ -145,7 +145,9 @@ PowerSetpointTryResult_t PowerSetpoint_TryApply(void)
ctx = build_context();
action = PowerSetpoint_Decide(&applied, &pending, &ctx);
if (action == POWER_SETPOINT_FAST_DISCHARGE) {
/* TonHe dumps HV→LV itself; LV→HV is a group stop/start in psu_control. */
if ((action == POWER_SETPOINT_FAST_DISCHARGE) &&
(PSU_GetType() != PSU_TYPE_TONHE_30KW)) {
fd_target = pending;
fd_active = 1u;
setpoint_dirty = 0u;