Skip to content

Commit dda12cd

Browse files
authored
Merge pull request #115 from SnuffSocket/fix-eurofilt
Fix: "One euro filter return none" by Fracas42
2 parents 00e03c8 + 1de5670 commit dda12cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

BabbleApp/one_euro_filter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ def __call__(self, x):
5050
self.t_prev = t
5151

5252
return x_hat
53+
else:
54+
self.x_prev = x
55+
return x

0 commit comments

Comments
 (0)