Skip to content

Instantly share code, notes, and snippets.

View DelphineCCChiu's full-sized avatar

Delphine_CC_Chiu DelphineCCChiu

View GitHub Profile
@DelphineCCChiu
DelphineCCChiu / new_method_to_cal_pwm
Last active January 8, 2024 10:48
Support to accumulate controllers' output PWM and don't calculate PID output if input temperature was lower than setpoint
Description:
1. Add one property, accumulateSetPoint, in fan table that could be used to enable accumulation of the output PWM of
different controllers with same sensors.
e.g. If we have two controllers named "Stepwise_Temp_CPU0" and "PID_Temp_CPU0" in fan table that used to monitor
the temperature of CPU, their profile name would be "Temp_CPU0".
If we set accumulateSetPoint to true in zones field, the output PWM of "Stepwise_Temp_CPU0" and "PID_Temp_CPU0"
will be accumulated.