Instantaneous capture input for balancing the variable height inverted pendulum