[chbot] Filter

Robin Gilks robin at gilks.org
Thu Oct 18 03:16:11 BST 2018


> Say the raw data is  0,1,2,3,4,9,6,7,8
> The 9 between 4 and 6 is the problem. It may be a small glitch on the
> displacement curve but it is a massive change in velocity. The velocity is
> 1
> till step 4 then it is 5 and then -3 and it then goes back to 1. How do I
> fix
> the 9 !!!!
> Maybe be something like check the velocity and if it increases too
> rapidly,
> ignore that point but that could lead into other issues.
>
> Cheers Wallace

Try this (or an adaptation thereof):

https://github.com/g8ecj/turbine/blob/master/median.c

-- 
Robin Gilks





More information about the Chchrobotics mailing list