mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-10-21 08:48:13 +00:00
refactor calibration process, some dummy commands support
This commit is contained in:
1 parent
b181fcc38c
commit
1c88c8ad41
6 files changed
+166
-84
No files matched your search
+13
-2
@@ -10,8 +10,7 @@ from cnc.config import *
|
||||
|
||||
|
||||
def init():
|
||||
""" Initialize GPIO pins and machine itself, including calibration if
|
||||
needed. Do not return till all procedure is completed.
|
||||
""" Initialize GPIO pins and machine itself.
|
||||
"""
|
||||
logging.info("initialize hal")
|
||||
|
||||
@@ -63,6 +62,18 @@ def get_bed_temperature():
|
||||
return BED_MAX_TEMPERATURE * 0.999
|
||||
|
||||
|
||||
def calibrate(x, y, z):
|
||||
""" Move head to home position till end stop switch will be triggered.
|
||||
Do not return till all procedures are completed.
|
||||
:param x: boolean, True to calibrate X axis.
|
||||
:param y: boolean, True to calibrate Y axis.
|
||||
:param z: boolean, True to calibrate Z axis.
|
||||
:return: boolean, True if all specified end stops were triggered.
|
||||
"""
|
||||
logging.info("hal calibrate, x={}, y={}, z={}".format(x, y, z))
|
||||
return True
|
||||
|
||||
|
||||
# noinspection PyUnusedLocal
|
||||
def move(generator):
|
||||
""" Move head to specified position.
|
||||
|
||||
Reference in new issue
Block a user