forked from achamaikin/CCSModuleSW30Web
Add TonHe 30kW PSU control with LV/HV restart (v1.0.37).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user