complementary filter: default init of variable which may have caused crashes
parent
70f56a5fb2
commit
9c8091851e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue