Skip to content

Commit

Permalink
Modified the naming to get the value of checkhysterwithsetpt
Browse files Browse the repository at this point in the history
Modified the naming to get the value of checkhysterwithsetpt in dbus
configuration and json configuration.

Change-Id: Ic9cc6a6bfd0da69acc1638ca7ebd6712211e2984
Signed-off-by: Delphine CC Chiu <[email protected]>
  • Loading branch information
DelphineCCChiu committed Jun 14, 2024
1 parent af97d8e commit 5d897e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbus/dbusconfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ void populatePidInfo(
double positiveHysteresis = 0;
double derivativeCoeff = 0;

auto findCheckHysterFlag = base.find("CheckHysterWithSetpt");
auto findCheckHysterFlag = base.find("CheckHysteresisWithSetpoint");
auto findNeg = base.find("NegativeHysteresis");
auto findPos = base.find("PositiveHysteresis");
auto findDerivative = base.find("DCoefficient");
Expand Down
2 changes: 1 addition & 1 deletion pid/buildjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void from_json(const json& j, conf::ControllerInfo& c)
*/
auto p = j.at("pid");

auto checkHysterWithSetpt = p.find("checkHysterWithSetpt");
auto checkHysterWithSetpt = p.find("checkHysteresisWithSetpoint");
auto positiveHysteresis = p.find("positiveHysteresis");
auto negativeHysteresis = p.find("negativeHysteresis");
auto derivativeCoeff = p.find("derivativeCoeff");
Expand Down

0 comments on commit 5d897e2

Please sign in to comment.