controllib: fix for undefined sanitizer

This commit is contained in:
Julian Oes
2019-09-03 11:54:09 -05:00
committed by Daniel Agar
parent 78d3986013
commit 5e9cae11f8
+2 -1
View File
@@ -44,6 +44,7 @@
#include <time.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <mathlib/math/test/test.hpp>
#include <mathlib/math/filter/LowPassFilter2p.hpp>
@@ -65,7 +66,7 @@ public:
// methods
BlockLowPass(SuperBlock *parent, const char *name) :
Block(parent, name),
_state(0.0f / 0.0f /* initialize to invalid val, force into is_finite() check on first call */),
_state(NAN /* initialize to invalid val, force into is_finite() check on first call */),
_fCut(this, "") // only one parameter, no need to name
{}
virtual ~BlockLowPass() {}