From 1de567081edaad7d49ed32b09bc516f7255aab98 Mon Sep 17 00:00:00 2001 From: SnuffSocket <82658601+SnuffSocket@users.noreply.github.com> Date: Mon, 14 Apr 2025 03:26:57 +0300 Subject: [PATCH] Fix: "One euro filter return none" by Fracas42: https://github.com/EyeTrackVR/EyeTrackVR/commit/5797fb342f8bdb33baece547f48f91e154092899 --- BabbleApp/one_euro_filter.py | 3 +++ 1 file changed, 3 insertions(+) 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