Active control of a non-smooth nonlinear system using feedback linearisation