controllib: fix for undefined sanitizer

This commit is contained in:
Julian Oes 2019-09-03 18:54:09 +02:00 committed by Daniel Agar
parent 78d3986013
commit 5e9cae11f8
1 changed files with 2 additions and 1 deletions

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() {}