def function_line_length_gap(self): buf1 = self.spinLinegap.value() buf2 = self.spinLinelength.value() camera_linedetection.LineGap = buf1 camera_linedetection.LineLength = buf2 #print(camera_linedetection.LineGap) #print(camera_linedetection.LineLength) buzzer.beep_scroll(self.buzzerpin)
def function_line_length_gap(self): buf1 = self.spinLinegap.value() buf2 = self.spinLinelength.value() camera_linedetection.LineGap = buf1 camera_linedetection.LineLength = buf2 #print(camera_linedetection.LineGap) #print(camera_linedetection.LineLength) buzzer.beep_scroll(self.buzzerpin)
def function_cameraPIDValue(self): buf1 = self.spinCameraP.value() buf2 = self.spinCameraI.value() buf3 = self.spinCameraD.value() stepper_output.cameraP = buf1 stepper_output.cameraI = buf2 stepper_output.cameraD = buf3 #print(buf1) #print(buf2) #print(buf3) buzzer.beep_scroll(self.buzzerpin)
def function_cameraPIDValue(self): buf1 = self.spinCameraP.value() buf2 = self.spinCameraI.value() buf3 = self.spinCameraD.value() stepper_output.cameraP = buf1 stepper_output.cameraI = buf2 stepper_output.cameraD = buf3 #print(buf1) #print(buf2) #print(buf3) buzzer.beep_scroll(self.buzzerpin)
def function_cameraPID(self): if(self.CameraPID == 0 and stepper_output.motor_enabled and camera_linedetection.camera_enabled): self.CameraPID = 1 #print("on") self.btnCameraPID.setStyleSheet("background-color: rgb(255,0,0);") #b,g,r format self.btnCameraPID.setText("PID Disable") stepper_output.cameraP = self.spinCameraP.value() stepper_output.cameraI = self.spinCameraI.value() stepper_output.cameraD = self.spinCameraD.value() stepper_output.cameraPIDsetpoint = self.spinTargetdia.value() camera_linedetection.cameraPID_enabled = 1 elif(self.CameraPID == 1): self.CameraPID = 0 #print("off") self.btnCameraPID.setStyleSheet("background-color: rgb(0,255,0);") self.btnCameraPID.setText("PID Enable") camera_linedetection.cameraPID_enabled = 0 else: print("Check - Stepper not started ?") buzzer.beep_scroll(self.buzzerpin)
def function_cameraPID(self): if (self.CameraPID == 0 and stepper_output.motor_enabled and camera_linedetection.camera_enabled): self.CameraPID = 1 #print("on") self.btnCameraPID.setStyleSheet( "background-color: rgb(255,0,0);") #b,g,r format self.btnCameraPID.setText("PID Disable") stepper_output.cameraP = self.spinCameraP.value() stepper_output.cameraI = self.spinCameraI.value() stepper_output.cameraD = self.spinCameraD.value() stepper_output.cameraPIDsetpoint = self.spinTargetdia.value() camera_linedetection.cameraPID_enabled = 1 elif (self.CameraPID == 1): self.CameraPID = 0 #print("off") self.btnCameraPID.setStyleSheet("background-color: rgb(0,255,0);") self.btnCameraPID.setText("PID Enable") camera_linedetection.cameraPID_enabled = 0 else: print("Check - Stepper not started ?") buzzer.beep_scroll(self.buzzerpin)
def function_scrollHotend(self): buf = self.scrollHotend.value()/10.0 self.lcdHotend.setProperty("value", buf) hotend_output.hotend_setpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollAircon(self): buf = self.scrollAircon.value()/10.0 self.lcdAircon.setProperty("value", buf) aircon_output.aircon_setpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollColdblock(self): buf = self.scrollColdblock.value()/10.0 self.lcdcoldblock.setProperty("value", buf) coldblock_output.coldblock_setpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollFilament(self): buf = self.scrollFilament.value()/100.0 self.lcdFilament.setProperty("value", buf) herkulex.servo_enabled = 1 herkulex.filament_dia = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollFeedrate(self): buf = self.scrollFeedrate.value() self.lcdFeedrate.setProperty("value", buf) stepper_output.motor_feedrate = buf buzzer.beep_scroll(self.buzzerpin)
def function_cameraedgesigma(self): buf = self.spinEdgesigma.value()/100 camera_linedetection.edgesigma = buf #print(camera_linedetection.edgesigma) buzzer.beep_scroll(self.buzzerpin)
def function_nozzledia(self): buf = self.spinTargetdia.value() #print(buf) stepper_output.cameraPIDsetpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_cameraedgesigma(self): buf = self.spinEdgesigma.value() / 100 camera_linedetection.edgesigma = buf #print(camera_linedetection.edgesigma) buzzer.beep_scroll(self.buzzerpin)
def function_nozzledia(self): buf = self.spinTargetdia.value() #print(buf) stepper_output.cameraPIDsetpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollFilament(self): buf = self.scrollFilament.value() / 100.0 self.lcdFilament.setProperty("value", buf) herkulex.servo_enabled = 1 herkulex.filament_dia = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollHotend(self): buf = self.scrollHotend.value() / 10.0 self.lcdHotend.setProperty("value", buf) hotend_output.hotend_setpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollColdblock(self): buf = self.scrollColdblock.value() / 10.0 self.lcdcoldblock.setProperty("value", buf) coldblock_output.coldblock_setpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollAircon(self): buf = self.scrollAircon.value() / 10.0 self.lcdAircon.setProperty("value", buf) aircon_output.aircon_setpoint = buf buzzer.beep_scroll(self.buzzerpin)
def function_scrollFeedrate(self): buf = self.scrollFeedrate.value() self.lcdFeedrate.setProperty("value", buf) stepper_output.motor_feedrate = buf buzzer.beep_scroll(self.buzzerpin)