Nonsmooth dynamic filtering for mechanical servo-systems