Sliding mode control and speed control