Forum

OneEuroFilter doesn't "recover" when Input was interrupted by NaN for a moment, but stays on NaN

OneEuroFilter doesn’t “recover” when Input was interrupted by NaN for a moment, but stays on NaN:
oneeurofilter_NaN

Should be a simple fix with a “IsNaN”-Node and If-Region inside the OneEuroFilter, or does anything speak against it?

I’ve put it just put an If-Region around the OneEuroFilter as a Workaround in the meantime:
oneeurofilter_NaN_solution

Actually more or less the same situation with Dampers, Filter and Oscillators.
Damper_Filter_Oscillator_Nan

Thanks for the report. However, do you have an example? Just tried to reproduce the Oscillator case and failed.
NaN Filters.zip (3.5 KB)

I tried hard and suceeded again in getting it stuck ;)
See 2.) capture and patch below: If you start with NaN and then connect a Float again, they will also not “wake up”. Even if Damper and Oscillator Nodes are Float32 anyway.

nan_Filters_etc_Bug

Patch:
NaN_Filters_etc_Bug.vl (21.4 KB)

Thank you @benju ! Fixed in upcoming

1 Like