mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Home head only by X- and Y axis, do extra bedHome (G28 Z)
CURA-4844
This commit is contained in:
parent
c7b6bb8188
commit
10ebabb7f6
2 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,6 @@ class GenericOutputController(PrinterOutputController):
|
|||
def homeHead(self, printer):
|
||||
self._output_device.sendCommand("G28 X")
|
||||
self._output_device.sendCommand("G28 Y")
|
||||
self._output_device.sendCommand("G28 Z")
|
||||
|
||||
def homeBed(self, printer):
|
||||
self._output_device.sendCommand("G28 Z")
|
||||
|
|
|
@ -42,6 +42,7 @@ class BedLevelMachineAction(MachineAction):
|
|||
printer.homeBed()
|
||||
printer.moveHead(0, 0, 3)
|
||||
printer.homeHead()
|
||||
printer.homeBed()
|
||||
|
||||
def _getPrinterOutputDevices(self) -> List[PrinterOutputDevice]:
|
||||
return [printer_output_device for printer_output_device in Application.getInstance().getOutputDeviceManager().getOutputDevices() if isinstance(printer_output_device, PrinterOutputDevice)]
|
||||
|
@ -60,6 +61,7 @@ class BedLevelMachineAction(MachineAction):
|
|||
printer.moveHead(0, 0, 3)
|
||||
printer.moveHead(Application.getInstance().getGlobalContainerStack().getProperty("machine_width", "value") - 10, 0, 0)
|
||||
printer.moveHead(0, 0, -3)
|
||||
printer.homeBed()
|
||||
self._bed_level_position += 1
|
||||
elif self._bed_level_position == 1:
|
||||
printer.moveHead(0, 0, 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue