You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Define time filter behavior when max_error is 0 #302
The time filter divides by zero when the first three measurements have a max_error of 0. The second measurement leaves all covariances at 0, so S = P_oo_p + R is 0 on the third, and the filter state becomes NaN for good. The C++ reference does the same, and it fails silently: the conversions return wrong values and get_error() returns 0, so the filter looks fully converged.
Output from the C++ reference after three measurements with a max_error of 0, followed by five normal ones:
Activity
maximmaxim345 commentedon Oct 8, 2026
@kahrendt Can you take a look at this when you have time?
kahrendt commentedon Oct 14, 2026
Let's floor it at 1 microsecond
kahrendt commentedon Oct 14, 2026
On second thought, let's just reject any error <= 0.0 (something is wrong at that point, so it should be ignored). I'll update the time filter code.
Ignore samples with non-positive max_error (#10)