From 641059917219b8cb4e52f34b9e20e624520b4fcf Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Thu, 12 Mar 2015 21:53:19 +0000 Subject: [PATCH] Fix for negative MRES --- motorApp/Db/motor.db | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motorApp/Db/motor.db b/motorApp/Db/motor.db index 40df7fe4..33ad2129 100644 --- a/motorApp/Db/motor.db +++ b/motorApp/Db/motor.db @@ -43,7 +43,7 @@ record(calcout, "$(P)$(M)_vCh") { record(calcout, "$(P)$(M)_twCh") { field(DESC, "change TWV") - field(CALC, "min(max(a*b,c),d-e)") + field(CALC, "min(max(a*b,abs(c)),d-e)") field(INPB, "$(P)$(M).TWV") field(INPC, "$(P)$(M).MRES") field(INPD, "$(P)$(M).HLM")