# process variable (PV). Uses proportional integral (PI)
# control.
# Usage: update_pi arg1 arg2 arg3 arg4 arg5 arg6
- # Version: 0.1.2
+ # Version: 0.1.3
# Input: arg1: path_loop_name (control loop name path)
# arg2: var_pv (process variable)
# arg3: var_sp (set point)
sum_cand="$(try echo "$sum + $error" | bc -l)";
#yell "DEBUG:sum:$sum";
if [[ "$(try echo "$sum_cand > 2 * $sum " | bc -l)" -eq 1 ]]; then
- sum="$(try echo "$sum + l($error)" | bc -l)"; # dampen integral sum spikes
+ sum="$(try echo "$sum + l($error + 1)" | bc -l)"; # dampen integral sum spikes
else
sum="$sum_cand";
fi;