complementary filter: K is float

And I wondered why complementary filters have not been working for a year
pull/1/head
emamaker 2022-06-09 09:56:42 +02:00
parent a7079d2ef1
commit 23b285da14
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ class ComplementaryFilter{
ComplementaryFilter(float k); ComplementaryFilter(float k);
float calculate(float f); float calculate(float f);
private: private:
int K; float K;
float oldVal; float oldVal;
}; };