mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 21:33:15 +08: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
@ -60,7 +60,6 @@ class GenericOutputController(PrinterOutputController):
|
|||||||
def homeHead(self, printer):
|
def homeHead(self, printer):
|
||||||
self._output_device.sendCommand("G28 X")
|
self._output_device.sendCommand("G28 X")
|
||||||
self._output_device.sendCommand("G28 Y")
|
self._output_device.sendCommand("G28 Y")
|
||||||
self._output_device.sendCommand("G28 Z")
|
|
||||||
|
|
||||||
def homeBed(self, printer):
|
def homeBed(self, printer):
|
||||||
self._output_device.sendCommand("G28 Z")
|
self._output_device.sendCommand("G28 Z")
|
||||||
|
@ -42,6 +42,7 @@ class BedLevelMachineAction(MachineAction):
|
|||||||
printer.homeBed()
|
printer.homeBed()
|
||||||
printer.moveHead(0, 0, 3)
|
printer.moveHead(0, 0, 3)
|
||||||
printer.homeHead()
|
printer.homeHead()
|
||||||
|
printer.homeBed()
|
||||||
|
|
||||||
def _getPrinterOutputDevices(self) -> List[PrinterOutputDevice]:
|
def _getPrinterOutputDevices(self) -> List[PrinterOutputDevice]:
|
||||||
return [printer_output_device for printer_output_device in Application.getInstance().getOutputDeviceManager().getOutputDevices() if isinstance(printer_output_device, 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(0, 0, 3)
|
||||||
printer.moveHead(Application.getInstance().getGlobalContainerStack().getProperty("machine_width", "value") - 10, 0, 0)
|
printer.moveHead(Application.getInstance().getGlobalContainerStack().getProperty("machine_width", "value") - 10, 0, 0)
|
||||||
printer.moveHead(0, 0, -3)
|
printer.moveHead(0, 0, -3)
|
||||||
|
printer.homeBed()
|
||||||
self._bed_level_position += 1
|
self._bed_level_position += 1
|
||||||
elif self._bed_level_position == 1:
|
elif self._bed_level_position == 1:
|
||||||
printer.moveHead(0, 0, 3)
|
printer.moveHead(0, 0, 3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user