mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-10-20 08:47:05 +00:00
spindle implementation
This commit is contained in:
1 parent
7229bc1c4f
commit
12894f2795
7 files changed
+217
-47
No files matched your search
+3
-1
@@ -34,8 +34,9 @@ class GMachine(object):
|
||||
def release(self):
|
||||
""" Return machine to original position and free all resources.
|
||||
"""
|
||||
self._spindle(0)
|
||||
self.home()
|
||||
hal.join()
|
||||
hal.deinit()
|
||||
|
||||
def reset(self):
|
||||
""" Reinitialize all program configurable thing.
|
||||
@@ -48,6 +49,7 @@ class GMachine(object):
|
||||
self._absoluteCoordinates = True
|
||||
|
||||
def _spindle(self, spindle_speed):
|
||||
hal.join()
|
||||
hal.spindle_control(100.0 * spindle_speed / SPINDLE_MAX_RPM)
|
||||
|
||||
def _move(self, delta, velocity):
|
||||
|
||||
Reference in new issue
Block a user