forked from Archive/PX4-Autopilot
controllib: fix for undefined sanitizer
This commit is contained in:
parent
78d3986013
commit
5e9cae11f8
|
@ -44,6 +44,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <float.h>
|
||||||
#include <mathlib/math/test/test.hpp>
|
#include <mathlib/math/test/test.hpp>
|
||||||
#include <mathlib/math/filter/LowPassFilter2p.hpp>
|
#include <mathlib/math/filter/LowPassFilter2p.hpp>
|
||||||
|
|
||||||
|
@ -65,7 +66,7 @@ public:
|
||||||
// methods
|
// methods
|
||||||
BlockLowPass(SuperBlock *parent, const char *name) :
|
BlockLowPass(SuperBlock *parent, const char *name) :
|
||||||
Block(parent, 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
|
_fCut(this, "") // only one parameter, no need to name
|
||||||
{}
|
{}
|
||||||
virtual ~BlockLowPass() {}
|
virtual ~BlockLowPass() {}
|
||||||
|
|
Loading…
Reference in New Issue