summaryrefslogtreecommitdiffstats
path: root/pid/ec
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2019-02-25 10:01:42 -0800
committerJames Feist <james.feist@linux.intel.com>2019-02-26 18:31:58 +0000
commit608304da320f232b9adc591301581a5fa5949fff (patch)
tree9916d7a2cb714cac305d9a2ff34ed3471a50c895 /pid/ec
parent2642cb54945d1500992559fc55241b48afce3551 (diff)
downloadphosphor-pid-control-608304da320f232b9adc591301581a5fa5949fff.tar.gz
phosphor-pid-control-608304da320f232b9adc591301581a5fa5949fff.zip
stepwise: Add ceiling type
Add a stepwise ceiling type, this is used as a upper clipping curve to limit the max output based on a temperature sensor. This is commonly used for quiet fan mode where CPU throttling is allowed to preserve a max fan noise. Change-Id: I181d5913c92e5498a34e6d3f67cf99b67471479c Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'pid/ec')
-rw-r--r--pid/ec/stepwise.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/pid/ec/stepwise.hpp b/pid/ec/stepwise.hpp
index bc7c204..3ce847a 100644
--- a/pid/ec/stepwise.hpp
+++ b/pid/ec/stepwise.hpp
@@ -31,6 +31,7 @@ struct StepwiseInfo
double output[maxStepwisePoints];
double positiveHysteresis;
double negativeHysteresis;
+ bool isCeiling;
};
double stepwise(const ec::StepwiseInfo& info, double value);
OpenPOWER on IntegriCloud