From 23b285da14d3c618cf590c0d7bbd9c92e1a73ae2 Mon Sep 17 00:00:00 2001 From: emamaker Date: Thu, 9 Jun 2022 09:56:42 +0200 Subject: [PATCH] complementary filter: K is float And I wondered why complementary filters have not been working for a year --- include/behaviour_control/complementary_filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/behaviour_control/complementary_filter.h b/include/behaviour_control/complementary_filter.h index 8300132..caf4756 100644 --- a/include/behaviour_control/complementary_filter.h +++ b/include/behaviour_control/complementary_filter.h @@ -7,6 +7,6 @@ class ComplementaryFilter{ ComplementaryFilter(float k); float calculate(float f); private: - int K; + float K; float oldVal; }; \ No newline at end of file