def move_upleft(ptz, request):
    if (YNOW == (- 1)):
        request.Position.PanTilt.y = YNOW
    else:
        request.Position.PanTilt.y = (YNOW - Move)
    if ((XNOW + Move) <= 1.0):
        request.Position.PanTilt.x = (XNOW + Move)
    elif ((XNOW <= 1.0) and (XNOW > 0.99)):
        request.Position.PanTilt.x = (- XNOW)
    elif (XNOW < 0):
        request.Position.PanTilt.x = (XNOW + Move)
    elif ((XNOW <= (- 0.105556)) and (XNOW > (- 0.11))):
        request.Position.PanTilt.x = XNOW
    do_move(ptz, request)
def move_upleft(ptz, request):
    if (YNOW == (- 1)):
        request.Position.PanTilt.y = YNOW
    else:
        request.Position.PanTilt.y = (YNOW - Move)
    if ((XNOW + Move) <= 1.0):
        request.Position.PanTilt.x = (XNOW + Move)
    elif ((XNOW <= 1.0) and (XNOW > 0.99)):
        request.Position.PanTilt.x = (- XNOW)
    elif (XNOW < 0):
        request.Position.PanTilt.x = (XNOW + Move)
    elif ((XNOW <= (- 0.105556)) and (XNOW > (- 0.11))):
        request.Position.PanTilt.x = XNOW
    do_move(ptz, request)