mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 15:03:14 +08:00
Added home bed & head functions
CURA-1339
This commit is contained in:
parent
0a46567c17
commit
ceb8ef86f8
@ -1,6 +1,8 @@
|
|||||||
from UM.OutputDevice.OutputDevice import OutputDevice
|
from UM.OutputDevice.OutputDevice import OutputDevice
|
||||||
from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot, QObject
|
from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot, QObject
|
||||||
from enum import IntEnum # For the connection state tracking.
|
from enum import IntEnum # For the connection state tracking.
|
||||||
|
from UM.Logger import Logger
|
||||||
|
|
||||||
|
|
||||||
## Printer output device adds extra interface options on top of output device.
|
## Printer output device adds extra interface options on top of output device.
|
||||||
#
|
#
|
||||||
@ -59,6 +61,27 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
|||||||
self._target_bed_temperature = temperature
|
self._target_bed_temperature = temperature
|
||||||
self.targetBedTemperatureChanged.emit()
|
self.targetBedTemperatureChanged.emit()
|
||||||
|
|
||||||
|
## Home the head of the connected printer
|
||||||
|
# This function is "final" (do not re-implement)
|
||||||
|
@pyqtSlot()
|
||||||
|
def homeHead(self):
|
||||||
|
self._homeHead()
|
||||||
|
|
||||||
|
## Home the head of the connected printer
|
||||||
|
# This is an implementation function and should be overriden by children.
|
||||||
|
def _homeHead(self):
|
||||||
|
Logger.log("w", "_homeHead is not implemented by this output device")
|
||||||
|
|
||||||
|
## Home the bed of the connected printer
|
||||||
|
# This function is "final" (do not re-implement)
|
||||||
|
def homeBed(self):
|
||||||
|
self._homeBed()
|
||||||
|
|
||||||
|
## Home the bed of the connected printer
|
||||||
|
# This is an implementation function and should be overriden by children..
|
||||||
|
def _homeBed(self):
|
||||||
|
Logger.log("w", "_homeBed is not implemented by this output device")
|
||||||
|
|
||||||
## Set the bed temperature of the connected printer (if any).
|
## Set the bed temperature of the connected printer (if any).
|
||||||
# /parameter temperature Temperature bed needs to go to (in deg celsius)
|
# /parameter temperature Temperature bed needs to go to (in deg celsius)
|
||||||
def _setTargetBedTemperature(self, temperature):
|
def _setTargetBedTemperature(self, temperature):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user