Control of underactuated mechanical systems door