diff --git a/src/lib/controllib/BlockLowPass.hpp b/src/lib/controllib/BlockLowPass.hpp index 73f2a51dc5..9302977408 100644 --- a/src/lib/controllib/BlockLowPass.hpp +++ b/src/lib/controllib/BlockLowPass.hpp @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -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() {}