Sliding mode control of the reaction wheel pendulum