def METHOD_NAME(self, newX, newY):
    limits = self.motors.getLimits()
    pan =  newX*limits.maxPan
    tilt = - newY*limits.maxTilt
    self.YValue.setText(str(tilt))
    self.XValue.setText(str(pan))
    #self.YValue.setText("{:.0f}".format(tilt))
    #self.XValue.setText("{:.0f}".format(pan))
    if (self.motors):
        self.motors.setPTMotorsData(pan, tilt, limits.maxPanSpeed, limits.maxTiltSpeed)