From: Steven Baltakatei Sandoval Date: Sun, 31 Oct 2021 22:28:08 +0000 (+0000) Subject: fix(bktemp-updateLoopPI):Fix log function used in sum dampener X-Git-Tag: 0.5.0~34 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/12674731c5848a1a69f9fbe1124de73545bf9cbd?ds=sidebyside;hp=--cc fix(bktemp-updateLoopPI):Fix log function used in sum dampener --- 12674731c5848a1a69f9fbe1124de73545bf9cbd 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;