Filter pipeline

Fixed issues I had with constants, and also added arm recognition for cursor direction.