complementary filter: default init of variable which may have caused crashes

pull/1/head
EmaMaker 2021-04-14 14:56:12 +02:00
parent 70f56a5fb2
commit 9c8091851e
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
ComplementaryFilter::ComplementaryFilter(float k){ ComplementaryFilter::ComplementaryFilter(float k){
this->K = k; this->K = k;
this->oldVal = 0;
} }
float result; float result;