diff --git a/BabbleApp/one_euro_filter.py b/BabbleApp/one_euro_filter.py index 30fa923..2c2421d 100644 --- a/BabbleApp/one_euro_filter.py +++ b/BabbleApp/one_euro_filter.py @@ -50,3 +50,6 @@ def __call__(self, x): self.t_prev = t return x_hat + else: + self.x_prev = x + return x