Balancing the torque limited pendulum from downwards hanging position to upright