Fix a default init of bool with float
Initing a bool with 0.0 (ie float) makes no sense. Change to false.
This was originally flagged by clang-tidy
Change-Id: I42112b568334632e04a8eca707304f7755750795
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/pid/ec/pid.hpp b/pid/ec/pid.hpp
index 02138cd..603f8c1 100644
--- a/pid/ec/pid.hpp
+++ b/pid/ec/pid.hpp
@@ -48,17 +48,17 @@
/* Condensed version for use by the configuration. */
struct pidinfo
{
- bool checkHysterWithSetpt = 0.0; // compare current input and setpoint to
- // check hysteresis
+ bool checkHysterWithSetpt = false; // compare current input and setpoint to
+ // check hysteresis
- double ts = 0.0; // sample time in seconds
- double proportionalCoeff = 0.0; // coeff for P
- double integralCoeff = 0.0; // coeff for I
- double derivativeCoeff = 0.0; // coeff for D
- double feedFwdOffset = 0.0; // offset coeff for feed-forward term
- double feedFwdGain = 0.0; // gain for feed-forward term
- ec::limits_t integralLimit; // clamp of integral
- ec::limits_t outLim; // clamp of output
+ double ts = 0.0; // sample time in seconds
+ double proportionalCoeff = 0.0; // coeff for P
+ double integralCoeff = 0.0; // coeff for I
+ double derivativeCoeff = 0.0; // coeff for D
+ double feedFwdOffset = 0.0; // offset coeff for feed-forward term
+ double feedFwdGain = 0.0; // gain for feed-forward term
+ ec::limits_t integralLimit; // clamp of integral
+ ec::limits_t outLim; // clamp of output
double slewNeg = 0.0;
double slewPos = 0.0;
double positiveHysteresis = 0.0;