From 9c8091851ea86d0d56e8f22753b319a233174fe4 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Wed, 14 Apr 2021 14:56:12 +0200 Subject: [PATCH] complementary filter: default init of variable which may have caused crashes --- src/behaviour_control/complementary_filter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/behaviour_control/complementary_filter.cpp b/src/behaviour_control/complementary_filter.cpp index 163572d..b9f214b 100644 --- a/src/behaviour_control/complementary_filter.cpp +++ b/src/behaviour_control/complementary_filter.cpp @@ -2,6 +2,7 @@ ComplementaryFilter::ComplementaryFilter(float k){ this->K = k; + this->oldVal = 0; } float result;