X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/8be2ec95ab4fc9c14541bebc6a4b70cf074bc5c6..33ccb3533eaeea70e1758bd15de0ad1ce359bddb:/unitproc/bktemp-updateLoopPI?ds=sidebyside diff --git a/unitproc/bktemp-updateLoopPI b/unitproc/bktemp-updateLoopPI index 61f7e8d..9054b90 100644 --- a/unitproc/bktemp-updateLoopPI +++ b/unitproc/bktemp-updateLoopPI @@ -9,7 +9,7 @@ update_pi() { # 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) @@ -82,7 +82,7 @@ update_pi() { 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;