Stability of controlled mechanical systems with ideal coulomb friction